diff options
Diffstat (limited to 'net-analyzer/hydra/files')
-rw-r--r-- | net-analyzer/hydra/files/hydra-9999999-respect-cflags-more.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/net-analyzer/hydra/files/hydra-9999999-respect-cflags-more.patch b/net-analyzer/hydra/files/hydra-9999999-respect-cflags-more.patch new file mode 100644 index 000000000000..0fe5753ec8af --- /dev/null +++ b/net-analyzer/hydra/files/hydra-9999999-respect-cflags-more.patch @@ -0,0 +1,31 @@ +Don't inject hardening CFLAGS. We already have these by default in Gentoo. +--- a/configure ++++ b/configure +@@ -1380,27 +1380,6 @@ if [ -n "$CRYPTO_PATH" ]; then + echo " ... RSA_generate_key()$RSA found" + fi + +-echo "Checking for secure compile option support in $CC ..." +-GCCSEC="no" +-LDSEC="no" +-GCCSECOPT="-fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2" +-echo '#include <stdio.h>' > $TMPC.c +-echo 'int main() { printf(""); return 0; }' >> $TMPC.c +-$CC -pie -fPIE $GCCSEPOPT -o $TMPC $TMPC.c > /dev/null 2> $TMPC.c.err +-test -x $TMPC && GCCSEC="yes" +-grep -q fPI $TMPC.c.err || GCCSECOPT="-pie -fPIE $GCCSECOPT" +-rm -f "$TMPC" +-$CC $GCCSECOPT -Wl,-z,now -Wl,-z,relro -o $TMPC $TMPC.c > /dev/null 2> $TMPC.c.err +-test -x $TMPC && { LDSEC="yes" ; GCCSECOPT="$GCCSECOPT -Wl,-z,now -Wl,-z,relro" ; } +-rm -f $TMPC $TMPC.c $TMPC.c.err +-echo " Compiling... $GCCSEC" +-echo " Linking... $LDSEC" +- +-echo "Checking for --allow-multiple-definition linker option ... $WALLOW" +-if [ "$WALLOW" = "yes" ]; then +- GCCSECOPT="$GCCSECOPT -Wl,--allow-multiple-definition" +-fi +- + echo + XDEFINES="" + XLIBS=""
\ No newline at end of file |