diff options
author | mandree <mandree@FreeBSD.org> | 2016-11-11 17:00:19 +0800 |
---|---|---|
committer | mandree <mandree@FreeBSD.org> | 2016-11-11 17:00:19 +0800 |
commit | d88ff274d52ae1f014452a273ba7177cec2ac274 (patch) | |
tree | 2dc402ed415d10c33a7b7cc36dff00b060b90960 | |
parent | d777a5be1f911b74aec179fe26bd1342a7dfd3a1 (diff) | |
download | freebsd-ports-graphics-d88ff274d52ae1f014452a273ba7177cec2ac274.tar.gz freebsd-ports-graphics-d88ff274d52ae1f014452a273ba7177cec2ac274.tar.zst freebsd-ports-graphics-d88ff274d52ae1f014452a273ba7177cec2ac274.zip |
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)
-rw-r--r-- | net-im/ricochet/Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/net-im/ricochet/Makefile b/net-im/ricochet/Makefile index 99529e2264e..bf43d7b876b 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 <bsd.port.pre.mk> + 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 <bsd.port.mk> +.include <bsd.port.post.mk> |