From ee4e4cfebefbbc97de9c88e38ead82c4701ea897 Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Thu, 28 Sep 2017 19:32:49 +0000 Subject: [PATCH] audio/liba52: build PIC objects on all architectures PR: 215974 Reported by: mmel Inspired by: ArchLinux, Gentoo, Debian Reviewed by: tijl (implicit) --- audio/liba52/Makefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/audio/liba52/Makefile b/audio/liba52/Makefile index 155b6d18e3d3..54ebac58324e 100644 --- a/audio/liba52/Makefile +++ b/audio/liba52/Makefile @@ -28,12 +28,11 @@ DJBFFT_CFLAGS= -I${LOCALBASE}/include DJBFFT_LDFLAGS= -L${LOCALBASE}/lib DJBFFT_CONFIGURE_ON= --enable-djbfft -CFLAGS_aarch64= -fPIC -CFLAGS_amd64= -fPIC -CFLAGS_powerpc= -fPIC - HEADER_FILES= liba52/a52_internal.h +post-patch: + @${REINPLACE_CMD} '/-prefer-non-pic/d' ${WRKSRC}/configure + post-patch-OPTIMIZED_CFLAGS-off: @${REINPLACE_CMD} -E -e 's!-O3!${CFLAGS}!' -e 's!-mcpu=[^"]+"!"!' \ ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}