diff options
author | wiz <wiz@pkgsrc.org> | 2017-09-10 17:11:47 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2017-09-10 17:11:47 +0000 |
commit | 69465db9818142cb9c5e203aad5b8d71bb326fe3 (patch) | |
tree | ba5b17731c92cf800ad27011cc9d4cda6665427e /security | |
parent | ec713ebd62abd73bdf65667e7651884a82255a7d (diff) | |
download | pkgsrc-69465db9818142cb9c5e203aad5b8d71bb326fe3.tar.gz |
Add -fPIC to CFLAGS.
Fixes SSP build, which otherwise breaks in configure:
cc1: warning: command line option '-fpermissive' is valid for C++/ObjC++ but not for C
ld: /var/tmp//ccfWqlYy.o: warning: relocation against `__stack_chk_fail' in readonly section `.text.startup'
ld: /var/tmp//ccfWqlYy.o: relocation R_X86_64_PC32 against symbol `__stack_chk_fail' can not be used when making a shared object; recompile with -fPIC
ld: final link failed: Bad value
configure: failed program was:
#line 10722 "configure"
#include "confdefs.h"
int main() {
; return 0; }
configure: error: --enable-pie requires PIE support from the linker.
Diffstat (limited to 'security')
-rw-r--r-- | security/tor-browser/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/security/tor-browser/Makefile b/security/tor-browser/Makefile index 2ee5bd1bce9..4f991397553 100644 --- a/security/tor-browser/Makefile +++ b/security/tor-browser/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.18 2017/09/08 02:38:43 ryoon Exp $ +# $NetBSD: Makefile,v 1.19 2017/09/10 17:11:47 wiz Exp $ TORBVER= 6.0.8 @@ -41,6 +41,7 @@ CONFIGURE_ARGS+= --enable-pie CONFIGURE_ARGS+= --enable-tor-data-in-home-dir CFLAGS+= -DTOR_BROWSER_DATA_IN_HOME_DIR=1 CFLAGS+= -DTOR_BROWSER_DATA_OUTSIDE_APP_DIR=1 +CFLAGS+= -fPIC # Avoid build failure from security/manager/ssl/src/nsNSSCallbacks.cpp:601 CFLAGS+= -fpermissive |