openssl: add configuration options, disable ssl3
[openwrt/staging/ynezz.git] / package / libs / openssl / patches / 180-strip-cflags-from-binary.patch
1 From f17f027c258338994a6167091a398c0cc1588acb Mon Sep 17 00:00:00 2001
2 From: Eneas U de Queiroz <cote2004-github@yahoo.com>
3 Date: Wed, 26 Sep 2018 18:04:58 -0300
4 Subject: Avoid exposing build directories
5
6 The CFLAGS contain the build directories, and are shown by calling
7 SSLeay_version(SSLEAY_CFLAGS), or running openssl version -a
8
9 Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
10
11 --- a/crypto/Makefile
12 +++ b/crypto/Makefile
13 @@ -57,7 +57,7 @@ top:
14 all: shared
15
16 buildinf.h: ../Makefile
17 - $(PERL) $(TOP)/util/mkbuildinf.pl "$(CC) $(CFLAGS)" "$(PLATFORM)" >buildinf.h
18 + $(PERL) $(TOP)/util/mkbuildinf.pl "$(filter-out -I% -iremap% -fmacro-prefix-map%,$(CC) $(CFLAGS))" "$(PLATFORM)" >buildinf.h
19
20 x86cpuid.s: x86cpuid.pl perlasm/x86asm.pl
21 $(PERL) x86cpuid.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@