summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjbeich <jbeich@FreeBSD.org>2017-09-28 19:43:06 +0000
committerjbeich <jbeich@FreeBSD.org>2017-09-28 19:43:06 +0000
commit4a8eace04ebe250c340e9a49450b235a20980e17 (patch)
treeabfb498a2d884ab5babfc9a320de48b2463cc8e8
parentbaee84815ee053980a670c0917b2e2c6399a3b4e (diff)
downloadFreeBSD-ports-4a8eace04ebe250c340e9a49450b235a20980e17.zip
FreeBSD-ports-4a8eace04ebe250c340e9a49450b235a20980e17.tar.gz
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 155b6d1..54ebac5 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}
OpenPOWER on IntegriCloud