diff options
-rw-r--r-- | multimedia/libmpeg2/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/multimedia/libmpeg2/Makefile b/multimedia/libmpeg2/Makefile index c97f817b2c2e..73e1d07cc0ed 100644 --- a/multimedia/libmpeg2/Makefile +++ b/multimedia/libmpeg2/Makefile @@ -66,6 +66,11 @@ pre-everything:: post-patch: @${REINPLACE_CMD} -e 's|<SDL/|<SDL11/|' ${WRKSRC}/libvo/* @${REINPLACE_CMD} -e 's|-O3||;s|<termio.h>|<termios.h>|' ${WRKSRC}/configure +# AMD64 prefers position independent code +.if ${MACHINE_ARCH:L} == "amd64" + @${REINPLACE_CMD} -e 's|-prefer-non-pic||' \ + ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} +.endif @${REINPLACE_CMD} -e 's|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g' \ ${WRKSRC}/libmpeg2/Makefile.in |