From d88ff274d52ae1f014452a273ba7177cec2ac274 Mon Sep 17 00:00:00 2001 From: mandree Date: Fri, 11 Nov 2016 09:00:19 +0000 Subject: Unbreak build on FreeBSD 9.x amd64. (Marked broken since r424405.) Punch out the -pie used during link, which fixes linker errors. (I'd tried setting -fPIE in CXXFLAGS before, which turned out not to solve the problem - I won't dig deeper now less than eight weeks before 9.x goes unsupported.) PR: 214331 (related) Approved by: portmgr blanket (just fix it) --- net-im/ricochet/Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'net-im/ricochet') diff --git a/net-im/ricochet/Makefile b/net-im/ricochet/Makefile index 99529e2264e1..bf43d7b876b8 100644 --- a/net-im/ricochet/Makefile +++ b/net-im/ricochet/Makefile @@ -17,8 +17,6 @@ LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept LIB_DEPENDS= libprotobuf.so:devel/protobuf RUN_DEPENDS= tor:security/tor -BROKEN_FreeBSD_9_amd64= does not build - USE_GITHUB= yes GH_ACCOUNT= ricochet-im @@ -32,8 +30,14 @@ PLIST_FILES= bin/ricochet \ share/icons/hicolor/48x48/apps/ricochet.png \ share/icons/hicolor/scalable/apps/ricochet.svg +.include + post-patch: @${REINPLACE_CMD} -E 's| -fsanitize=[a-z-]+| |g' \ ${WRKSRC}/hardened.pri +.if ${ARCH} == amd64 && ${OSREL:R} == 9 + @${REINPLACE_CMD} -E 's| -pie| |g' \ + ${WRKSRC}/hardened.pri +.endif -.include +.include -- cgit