diff options
author | Richard Levitte <levitte@openssl.org> | 2016-02-19 22:02:41 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2016-02-20 16:51:31 +0100 |
commit | 45502bfe19fb03c9f343b03fa6434ee0bece8428 (patch) | |
tree | aee03c1d32efbaa7227580971da0f628359016f2 /crypto | |
parent | 011b967508342a5c940a0c75193f742c0b13bdc4 (diff) |
Always build library object files with shared library cflags
This takes us away from the idea that we know exactly how our static
libraries are going to get used. Instead, we make them available to
build shareable things with, be it other shared libraries or DSOs.
On the other hand, we also have greater control of when the shared
library cflags. They will never be used with object files meant got
binaries, such as apps/openssl or test/test*.
With unified, we take this a bit further and prepare for having to
deal with extra cflags specifically to be used with DSOs (dynamic
engines), libraries and binaries (applications).
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto')
55 files changed, 55 insertions, 55 deletions
diff --git a/crypto/Makefile.in b/crypto/Makefile.in index d04f75c3bc..c8184e5a5c 100644 --- a/crypto/Makefile.in +++ b/crypto/Makefile.in @@ -21,7 +21,7 @@ RECURSIVE_MAKE= [ -n "$(SDIRS)" ] && for i in $(SDIRS) ; do \ PLIB_LDFLAG= EX_LIBS= -CFLAGS= $(INCLUDE) $(CFLAG) +CFLAGS= $(INCLUDE) $(CFLAG) $(SHARED_CFLAG) ASFLAGS= $(INCLUDE) $(ASFLAG) AFLAGS=$(ASFLAGS) CPUID_OBJ=mem_clr.o diff --git a/crypto/aes/Makefile.in b/crypto/aes/Makefile.in index 98bfb0a61a..938ad3c404 100644 --- a/crypto/aes/Makefile.in +++ b/crypto/aes/Makefile.in @@ -13,7 +13,7 @@ AR= ar r AES_ENC=aes_core.o aes_cbc.o -CFLAGS= $(INCLUDES) $(CFLAG) +CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG) ASFLAGS= $(INCLUDES) $(ASFLAG) AFLAGS= $(ASFLAGS) diff --git a/crypto/asn1/Makefile.in b/crypto/asn1/Makefile.in index b6c44e7dc7..86f805bc6f 100644 --- a/crypto/asn1/Makefile.in +++ b/crypto/asn1/Makefile.in @@ -10,7 +10,7 @@ CFLAG=-g MAKEFILE= Makefile AR= ar r -CFLAGS= $(INCLUDES) $(CFLAG) +CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG) GENERAL=Makefile README diff --git a/crypto/async/Makefile.in b/crypto/async/Makefile.in index 6e9f4653f6..277aa9ec32 100644 --- a/crypto/async/Makefile.in +++ b/crypto/async/Makefile.in @@ -10,7 +10,7 @@ CFLAG=-g MAKEFILE= Makefile AR= ar r -CFLAGS= $(INCLUDES) $(CFLAG) +CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG) GENERAL=Makefile TEST= diff --git a/crypto/bf/Makefile.in b/crypto/bf/Makefile.in index 14e2fe2229..ee5c259923 100644 --- a/crypto/bf/Makefile.in +++ b/crypto/bf/Makefile.in @@ -13,7 +13,7 @@ AR= ar r BF_ENC= bf_enc.o -CFLAGS= $(INCLUDES) $(CFLAG) +CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG) ASFLAGS= $(INCLUDES) $(ASFLAG) AFLAGS= $(ASFLAGS) diff --git a/crypto/bio/Makefile.in b/crypto/bio/Makefile.in index ff35cfb214..2bf8601ee8 100644 --- a/crypto/bio/Makefile.in +++ b/crypto/bio/Makefile.in @@ -10,7 +10,7 @@ CFLAG=-g MAKEFILE= Makefile AR= ar r -CFLAGS= $(INCLUDES) $(CFLAG) +CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG) GENERAL=Makefile diff --git a/crypto/bn/Makefile.in b/crypto/bn/Makefile.in index 7574585cb7..b14301aa0e 100644 --- a/crypto/bn/Makefile.in +++ b/crypto/bn/Makefile.in @@ -13,7 +13,7 @@ AR= ar r BN_ASM= bn_asm.o -CFLAGS= $(INCLUDES) $(CFLAG) +CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG) ASFLAGS= $(INCLUDES) $(ASFLAG) AFLAGS= $(ASFLAGS) diff --git a/crypto/buffer/Makefile.in b/crypto/buffer/Makefile.in index 79eeac1540..09b3488f04 100644 --- a/crypto/buffer/Makefile.in +++ b/crypto/buffer/Makefile.in @@ -10,7 +10,7 @@ CFLAG=-g MAKEFILE= Makefile AR= ar r -CFLAGS= $(INCLUDES) $(CFLAG) +CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG) GENERAL=Makefile diff --git a/crypto/camellia/Makefile.in b/crypto/camellia/Makefile.in index ac3ffdaa17..10c5a75341 100644 --- a/crypto/camellia/Makefile.in +++ b/crypto/camellia/Makefile.in @@ -13,7 +13,7 @@ AR= ar r CMLL_ENC= camellia.o cmll_misc.o cmll_cbc.o -CFLAGS= $(INCLUDES) $(CFLAG) +CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG) ASFLAGS= $(INCLUDES) $(ASFLAG) AFLAGS= $(ASFLAGS) diff --git a/crypto/cast/Makefile.in b/crypto/cast/Makefile.in index cd62408f35..06f65e21aa 100644 --- a/crypto/cast/Makefile.in +++ b/crypto/cast/Makefile.in @@ -13,7 +13,7 @@ AR= ar r CAST_ENC=c_enc.o -CFLAGS= $(INCLUDES) $(CFLAG) +CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG) ASFLAGS= $(INCLUDES) $(ASFLAG) AFLAGS= $(ASFLAGS) diff --git a/crypto/chacha/Makefile.in b/crypto/chacha/Makefile.in index de80ba4fd0..33e41d5940 100644 --- a/crypto/chacha/Makefile.in +++ b/crypto/chacha/Makefile.in @@ -12,7 +12,7 @@ AR= ar r CHACHA_ENC=chacha_enc.o -CFLAGS= $(INCLUDES) $(CFLAG) +CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG) ASFLAGS= $(INCLUDES) $(ASFLAG) AFLAGS= $(ASFLAGS) diff --git a/crypto/cmac/Makefile.in b/crypto/cmac/Makefile.in index 44888657c8..5abc139068 100644 --- a/crypto/cmac/Makefile.in +++ b/crypto/cmac/Makefile.in @@ -10,7 +10,7 @@ CFLAG=-g MAKEFILE= Makefile AR= ar r -CFLAGS= $(INCLUDES) $(CFLAG) +CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG) GENERAL=Makefile diff --git a/crypto/cms/Makefile.in b/crypto/cms/Makefile.in index 5e5db74ccc..cf074eaa81 100644 --- a/crypto/cms/Makefile.in +++ b/crypto/cms/Makefile.in @@ -10,7 +10,7 @@ CFLAG=-g MAKEFILE= Makefile AR= ar r -CFLAGS= $(INCLUDES) $(CFLAG) +CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG) GENERAL=Makefile diff --git a/crypto/comp/Makefile.in b/crypto/comp/Makefile.in index 6db134982b..24c1231fcc 100644 --- a/crypto/comp/Makefile.in +++ b/crypto/comp/Makefile.in @@ -10,7 +10,7 @@ CFLAG=-g MAKEFILE= Makefile AR= ar r -CFLAGS= $(INCLUDES) $(CFLAG) +CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG) GENERAL=Makefile diff --git a/crypto/conf/Makefile.in b/crypto/conf/Makefile.in index c0c8cd8982..e1bae369c2 100644 --- a/crypto/conf/Makefile.in +++ b/crypto/conf/Makefile.in @@ -10,7 +10,7 @@ CFLAG=-g MAKEFILE= Makefile AR= ar r -CFLAGS= $(INCLUDES) $(CFLAG) +CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG) GENERAL=Makefile diff --git a/crypto/ct/Makefile.in b/crypto/ct/Makefile.in index 5d186b8fd9..100179ddfa 100644 --- a/crypto/ct/Makefile.in +++ b/crypto/ct/Makefile.in @@ -10,7 +10,7 @@ CFLAG=-g MAKEFILE= Makefile AR= ar r -CFLAGS= $(INCLUDES) $(CFLAG) +CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG) GENERAL=Makefile diff --git a/crypto/des/Makefile.in b/crypto/des/Makefile.in index c65c05b110..248b53d700 100644 --- a/crypto/des/Makefile.in +++ b/crypto/des/Makefile.in @@ -13,7 +13,7 @@ AR= ar r RANLIB= ranlib DES_ENC= des_enc.o fcrypt_b.o -CFLAGS= $(INCLUDES) $(CFLAG) +CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG) ASFLAGS= $(INCLUDES) $(ASFLAG) AFLAGS= $(ASFLAGS) diff --git a/crypto/dh/Makefile.in b/crypto/dh/Makefile.in index 473ad3576a..9ac52eb1b4 100644 --- a/crypto/dh/Makefile.in +++ b/crypto/dh/Makefile.in @@ -10,7 +10,7 @@ CFLAG=-g MAKEFILE= Makefile AR= ar r -CFLAGS= $(INCLUDES) $(CFLAG) +CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG) GENERAL=Makefile diff --git a/crypto/dsa/Makefile.in b/crypto/dsa/Makefile.in index dd5bdbef25..a22dfa32b5 100644 --- a/crypto/dsa/Makefile.in +++ b/crypto/dsa/Makefile.in @@ -10,7 +10,7 @@ CFLAG=-g MAKEFILE= Makefile AR= ar r -CFLAGS= $(INCLUDES) $(CFLAG) +CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG) GENERAL=Makefile diff --git a/crypto/dso/Makefile.in b/crypto/dso/Makefile.in index 1f74735fd5..58d0974507 100644 --- a/crypto/dso/Makefile.in +++ b/crypto/dso/Makefile.in @@ -10,7 +10,7 @@ CFLAG=-g MAKEFILE= Makefile AR= ar r -CFLAGS= $(INCLUDES) $(CFLAG) +CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG) GENERAL=Makefile diff --git a/crypto/ec/Makefile.in b/crypto/ec/Makefile.in index eb68dcd4b7..1aa22d4962 100644 --- a/crypto/ec/Makefile.in +++ b/crypto/ec/Makefile.in @@ -10,7 +10,7 @@ CFLAG=-g MAKEFILE= Makefile AR= ar r -CFLAGS= $(INCLUDES) $(CFLAG) +CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG) ASFLAGS= $(INCLUDES) $(ASFLAG) AFLAGS= $(ASFLAGS) diff --git a/crypto/engine/Makefile.in b/crypto/engine/Makefile.in index 01dad47eaa..8435e7576c 100644 --- a/crypto/engine/Makefile.in +++ b/crypto/engine/Makefile.in @@ -10,7 +10,7 @@ CFLAG=-g MAKEFILE= Makefile AR= ar r -CFLAGS= $(INCLUDES) $(CFLAG) +CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG) GENERAL=Makefile diff --git a/crypto/err/Makefile.in b/crypto/err/Makefile.in index b2ff21806e..9329e9138e 100644 --- a/crypto/err/Makefile.in +++ b/crypto/err/Makefile.in @@ -10,7 +10,7 @@ CFLAG=-g MAKEFILE= Makefile AR= ar r -CFLAGS= $(INCLUDES) $(CFLAG) +CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG) GENERAL=Makefile diff --git a/crypto/evp/Makefile.in b/crypto/evp/Makefile.in index 100de31047..5b24ae5909 100644 --- a/crypto/evp/Makefile.in +++ b/crypto/evp/Makefile.in @@ -10,7 +10,7 @@ CFLAG=-g MAKEFILE= Makefile AR= ar r -CFLAGS= $(INCLUDES) $(CFLAG) +CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG) GENERAL=Makefile diff --git a/crypto/hmac/Makefile.in b/crypto/hmac/Makefile.in index ffb80b557e..ab8acab143 100644 --- a/crypto/hmac/Makefile.in +++ b/crypto/hmac/Makefile.in @@ -10,7 +10,7 @@ CFLAG=-g MAKEFILE= Makefile AR= ar r -CFLAGS= $(INCLUDES) $(CFLAG) +CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG) GENERAL=Makefile diff --git a/crypto/idea/Makefile.in b/crypto/idea/Makefile.in index c0f12e2944..b3aafcad79 100644 --- a/crypto/idea/Makefile.in +++ b/crypto/idea/Makefile.in @@ -10,7 +10,7 @@ CFLAG=-g MAKEFILE= Makefile AR= ar r -CFLAGS= $(INCLUDES) $(CFLAG) +CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG) GENERAL=Makefile diff --git a/crypto/kdf/Makefile.in b/crypto/kdf/Makefile.in index f7ddfe07c7..be4e08c1a0 100644 --- a/crypto/kdf/Makefile.in +++ b/crypto/kdf/Makefile.in @@ -10,7 +10,7 @@ CFLAG=-g MAKEFILE= Makefile AR= ar r -CFLAGS= $(INCLUDES) $(CFLAG) +CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG) GENERAL=Makefile diff --git a/crypto/lhash/Makefile.in b/crypto/lhash/Makefile.in index a9dc3dfea9..ff9000102c 100644 --- a/crypto/lhash/Makefile.in +++ b/crypto/lhash/Makefile.in @@ -10,7 +10,7 @@ CFLAG=-g MAKEFILE= Makefile AR= ar r -CFLAGS= $(INCLUDES) $(CFLAG) +CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG) GENERAL=Makefile diff --git a/crypto/md2/Makefile.in b/crypto/md2/Makefile.in index 29eeb33f0f..2692884a24 100644 --- a/crypto/md2/Makefile.in +++ b/crypto/md2/Makefile.in @@ -10,7 +10,7 @@ CFLAG=-g MAKEFILE= Makefile AR= ar r -CFLAGS= $(INCLUDES) $(CFLAG) +CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG) GENERAL=Makefile diff --git a/crypto/md4/Makefile.in b/crypto/md4/Makefile.in index ff5a2c15f0..b45b6ce64f 100644 --- a/crypto/md4/Makefile.in +++ b/crypto/md4/Makefile.in @@ -11,7 +11,7 @@ CFLAG=-g MAKEFILE= Makefile AR= ar r -CFLAGS= $(INCLUDES) $(CFLAG) +CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG) GENERAL=Makefile diff --git a/crypto/md5/Makefile.in b/crypto/md5/Makefile.in index b1d98e15ae..aec94b6d6b 100644 --- a/crypto/md5/Makefile.in +++ b/crypto/md5/Makefile.in @@ -13,7 +13,7 @@ AR= ar r MD5_ASM_OBJ= -CFLAGS= $(INCLUDES) $(CFLAG) +CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG) ASFLAGS= $(INCLUDES) $(ASFLAG) AFLAGS= $(ASFLAGS) diff --git a/crypto/mdc2/Makefile.in b/crypto/mdc2/Makefile.in index 8930d0277e..3c2275b581 100644 --- a/crypto/mdc2/Makefile.in +++ b/crypto/mdc2/Makefile.in @@ -10,7 +10,7 @@ CFLAG=-g MAKEFILE= Makefile AR= ar r -CFLAGS= $(INCLUDES) $(CFLAG) +CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG) GENERAL=Makefile diff --git a/crypto/modes/Makefile.in b/crypto/modes/Makefile.in index 4d3c0b090a..5e4415c431 100644 --- a/crypto/modes/Makefile.in +++ b/crypto/modes/Makefile.in @@ -12,7 +12,7 @@ AR= ar r MODES_ASM_OBJ= -CFLAGS= $(INCLUDES) $(CFLAG) +CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG) ASFLAGS= $(INCLUDES) $(ASFLAG) AFLAGS= $(ASFLAGS) diff --git a/crypto/objects/Makefile.in b/crypto/objects/Makefile.in index 394da3b0ed..64d138b2cf 100644 --- a/crypto/objects/Makefile.in +++ b/crypto/objects/Makefile.in @@ -11,7 +11,7 @@ MAKEFILE= Makefile AR= ar r PERL= perl -CFLAGS= $(INCLUDES) $(CFLAG) +CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG) GENERAL=Makefile README diff --git a/crypto/ocsp/Makefile.in b/crypto/ocsp/Makefile.in index 26d977412f..5ce7d88e02 100644 --- a/crypto/ocsp/Makefile.in +++ b/crypto/ocsp/Makefile.in @@ -10,7 +10,7 @@ CFLAG=-g MAKEFILE= Makefile AR= ar r -CFLAGS= $(INCLUDES) $(CFLAG) +CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG) GENERAL=Makefile README diff --git a/crypto/pem/Makefile.in b/crypto/pem/Makefile.in index 8a23ef684c..a5222975ba 100644 --- a/crypto/pem/Makefile.in +++ b/crypto/pem/Makefile.in @@ -10,7 +10,7 @@ CFLAG=-g MAKEFILE= Makefile AR= ar r -CFLAGS= $(INCLUDES) $(CFLAG) +CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG) GENERAL=Makefile diff --git a/crypto/pkcs12/Makefile.in b/crypto/pkcs12/Makefile.in index 651f13fef4..165ca2d5e0 100644 --- a/crypto/pkcs12/Makefile.in +++ b/crypto/pkcs12/Makefile.in @@ -10,7 +10,7 @@ CFLAG=-g MAKEFILE= Makefile AR= ar r -CFLAGS= $(INCLUDES) $(CFLAG) +CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG) GENERAL=Makefile diff --git a/crypto/pkcs7/Makefile.in b/crypto/pkcs7/Makefile.in index a58e323b56..49b78c58a2 100644 --- a/crypto/pkcs7/Makefile.in +++ b/crypto/pkcs7/Makefile.in @@ -13,7 +13,7 @@ AR= ar r PLIB_LDFLAG= EX_LIBS= -CFLAGS= $(INCLUDES) $(CFLAG) +CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG) GENERAL=Makefile README diff --git a/crypto/poly1305/Makefile.in b/crypto/poly1305/Makefile.in index 8735b79308..10f009ffec 100644 --- a/crypto/poly1305/Makefile.in +++ b/crypto/poly1305/Makefile.in @@ -12,7 +12,7 @@ AR= ar r POLY1305_ASM_OBJ= -CFLAGS= $(INCLUDES) $(CFLAG) +CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG) ASFLAGS= $(INCLUDES) $(ASFLAG) AFLAGS= $(ASFLAGS) diff --git a/crypto/rand/Makefile.in b/crypto/rand/Makefile.in index bf9ff3edff..8796faf895 100644 --- a/crypto/rand/Makefile.in +++ b/crypto/rand/Makefile.in @@ -10,7 +10,7 @@ CFLAG=-g MAKEFILE= Makefile AR= ar r -CFLAGS= $(INCLUDES) $(CFLAG) +CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG) GENERAL=Makefile diff --git a/crypto/rc2/Makefile.in b/crypto/rc2/Makefile.in index 3eaf4e3fb1..d124d0ba59 100644 --- a/crypto/rc2/Makefile.in +++ b/crypto/rc2/Makefile.in @@ -10,7 +10,7 @@ CFLAG=-g MAKEFILE= Makefile AR= ar r -CFLAGS= $(INCLUDES) $(CFLAG) +CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG) GENERAL=Makefile diff --git a/crypto/rc4/Makefile.in b/crypto/rc4/Makefile.in index f0f72d1a57..fe2ef7d6c5 100644 --- a/crypto/rc4/Makefile.in +++ b/crypto/rc4/Makefile.in @@ -12,7 +12,7 @@ AR= ar r RC4_ENC=rc4_enc.o rc4_skey.o -CFLAGS= $(INCLUDES) $(CFLAG) +CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG) ASFLAGS= $(INCLUDES) $(ASFLAG) AFLAGS= $(ASFLAGS) diff --git a/crypto/rc5/Makefile.in b/crypto/rc5/Makefile.in index 9efe7f9335..bd7a1c6613 100644 --- a/crypto/rc5/Makefile.in +++ b/ |