summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2017-09-28 19:43:06 +0000
committerJan Beich <jbeich@FreeBSD.org>2017-09-28 19:43:06 +0000
commitc85b277e749880f4aff497c480483a9ebe063215 (patch)
treeabfb498a2d884ab5babfc9a320de48b2463cc8e8
parentMFH: r450786 (diff)
MFH: r450863
audio/liba52: build PIC objects on all architectures PR: 215974 Reported by: mmel Inspired by: ArchLinux, Gentoo, Debian Reviewed by: tijl (implicit) Approved by: ports-secteam blanket
-rw-r--r--audio/liba52/Makefile7
1 files 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}