diff options
author | Tilman Keskinoz <arved@FreeBSD.org> | 2004-02-10 16:17:40 +0000 |
---|---|---|
committer | Tilman Keskinoz <arved@FreeBSD.org> | 2004-02-10 16:17:40 +0000 |
commit | 4a1ae6104b95571ffa29fd716797f4e1a25ee379 (patch) | |
tree | 057c10f88f9f95e8ed44c7b3d74f2c1ce6ce5f9d /multimedia/libmpeg2 | |
parent | - Fix build on non-i386 arch (diff) |
Fix build on AMD64
Submitted by: lioux, Adriaan de Groot <adridg@cs.kun.nl>
Diffstat (limited to 'multimedia/libmpeg2')
-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 |