From 9d03993f786499ab1fe50ec474984b998a17aee6 Mon Sep 17 00:00:00 2001 From: arved Date: Tue, 10 Feb 2004 16:17:40 +0000 Subject: Fix build on AMD64 Submitted by: lioux, Adriaan de Groot --- multimedia/libmpeg2/Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'multimedia') 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|||' ${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 -- cgit