diff --git a/math/djbfft/Makefile b/math/djbfft/Makefile index b0dc99c039d2..2dad64bd2b9d 100644 --- a/math/djbfft/Makefile +++ b/math/djbfft/Makefile @@ -25,7 +25,7 @@ post-patch: @${PERL} -pi -e 's|("include)|\1/${PORTNAME}|' ${WRKSRC}/hier.c do-configure: - @${ECHO_CMD} '${CC} ${CFLAGS}' > ${WRKSRC}/conf-cc + @${ECHO_CMD} '${CC} ${CFLAGS} -fPIC' > ${WRKSRC}/conf-cc @${ECHO_CMD} '${CC}' > ${WRKSRC}/conf-ld @${ECHO_CMD} ${PREFIX} > ${WRKSRC}/conf-home .ifdef(WITH_OPT_PENTIUM) diff --git a/multimedia/ffmpeg-devel/Makefile b/multimedia/ffmpeg-devel/Makefile index e9e3425cb0b4..ea12abcd9f87 100644 --- a/multimedia/ffmpeg-devel/Makefile +++ b/multimedia/ffmpeg-devel/Makefile @@ -126,11 +126,11 @@ CONFIGURE_ARGS+= --enable-mp3lame .endif ## optimization .ifdef(WITH_OPTIMIZED_CFLAGS) -CONFIGURE_ARGS+= --extra-cflags="-I${LOCALBASE}/include \ +CONFIGURE_ARGS+= --extra-cflags="-fPIC -I${LOCALBASE}/include \ -I${X11BASE}/include \ -ffast-math -fomit-frame-pointer" .else -CONFIGURE_ARGS+= --extra-cflags="-I${LOCALBASE}/include \ +CONFIGURE_ARGS+= --extra-cflags="-fPIC -I${LOCALBASE}/include \ -I${X11BASE}/include" \ --disable-opts .endif diff --git a/multimedia/ffmpeg/Makefile b/multimedia/ffmpeg/Makefile index e9e3425cb0b4..ea12abcd9f87 100644 --- a/multimedia/ffmpeg/Makefile +++ b/multimedia/ffmpeg/Makefile @@ -126,11 +126,11 @@ CONFIGURE_ARGS+= --enable-mp3lame .endif ## optimization .ifdef(WITH_OPTIMIZED_CFLAGS) -CONFIGURE_ARGS+= --extra-cflags="-I${LOCALBASE}/include \ +CONFIGURE_ARGS+= --extra-cflags="-fPIC -I${LOCALBASE}/include \ -I${X11BASE}/include \ -ffast-math -fomit-frame-pointer" .else -CONFIGURE_ARGS+= --extra-cflags="-I${LOCALBASE}/include \ +CONFIGURE_ARGS+= --extra-cflags="-fPIC -I${LOCALBASE}/include \ -I${X11BASE}/include" \ --disable-opts .endif