180-strip-cflags-from-binary.patch 825 B

123456789101112131415161718192021
  1. From f17f027c258338994a6167091a398c0cc1588acb Mon Sep 17 00:00:00 2001
  2. From: Eneas U de Queiroz <[email protected]>
  3. Date: Wed, 26 Sep 2018 18:04:58 -0300
  4. Subject: Avoid exposing build directories
  5. The CFLAGS contain the build directories, and are shown by calling
  6. SSLeay_version(SSLEAY_CFLAGS), or running openssl version -a
  7. Signed-off-by: Eneas U de Queiroz <[email protected]>
  8. --- a/crypto/Makefile
  9. +++ b/crypto/Makefile
  10. @@ -57,7 +57,7 @@ top:
  11. all: shared
  12. buildinf.h: ../Makefile
  13. - $(PERL) $(TOP)/util/mkbuildinf.pl "$(CC) $(CFLAGS)" "$(PLATFORM)" >buildinf.h
  14. + $(PERL) $(TOP)/util/mkbuildinf.pl "$(filter-out -I% -iremap% -fmacro-prefix-map%,$(CC) $(CFLAGS))" "$(PLATFORM)" >buildinf.h
  15. x86cpuid.s: x86cpuid.pl perlasm/x86asm.pl
  16. $(PERL) x86cpuid.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@