Browse Source

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>
master
Richard Levitte 7 years ago
parent
commit
45502bfe19
65 changed files with 91 additions and 83 deletions
  1. +5
    -2
      Configurations/README
  2. +6
    -3
      Configurations/README.design
  3. +4
    -2
      Configurations/common.tmpl
  4. +11
    -6
      Configurations/unix-Makefile.tmpl
  5. +0
    -8
      Configure
  6. +3
    -1
      Makefile.in
  7. +1
    -1
      crypto/Makefile.in
  8. +1
    -1
      crypto/aes/Makefile.in
  9. +1
    -1
      crypto/asn1/Makefile.in
  10. +1
    -1
      crypto/async/Makefile.in
  11. +1
    -1
      crypto/bf/Makefile.in
  12. +1
    -1
      crypto/bio/Makefile.in
  13. +1
    -1
      crypto/bn/Makefile.in
  14. +1
    -1
      crypto/buffer/Makefile.in
  15. +1
    -1
      crypto/camellia/Makefile.in
  16. +1
    -1
      crypto/cast/Makefile.in
  17. +1
    -1
      crypto/chacha/Makefile.in
  18. +1
    -1
      crypto/cmac/Makefile.in
  19. +1
    -1
      crypto/cms/Makefile.in
  20. +1
    -1
      crypto/comp/Makefile.in
  21. +1
    -1
      crypto/conf/Makefile.in
  22. +1
    -1
      crypto/ct/Makefile.in
  23. +1
    -1
      crypto/des/Makefile.in
  24. +1
    -1
      crypto/dh/Makefile.in
  25. +1
    -1
      crypto/dsa/Makefile.in
  26. +1
    -1
      crypto/dso/Makefile.in
  27. +1
    -1
      crypto/ec/Makefile.in
  28. +1
    -1
      crypto/engine/Makefile.in
  29. +1
    -1
      crypto/err/Makefile.in
  30. +1
    -1
      crypto/evp/Makefile.in
  31. +1
    -1
      crypto/hmac/Makefile.in
  32. +1
    -1
      crypto/idea/Makefile.in
  33. +1
    -1
      crypto/kdf/Makefile.in
  34. +1
    -1
      crypto/lhash/Makefile.in
  35. +1
    -1
      crypto/md2/Makefile.in
  36. +1
    -1
      crypto/md4/Makefile.in
  37. +1
    -1
      crypto/md5/Makefile.in
  38. +1
    -1
      crypto/mdc2/Makefile.in
  39. +1
    -1
      crypto/modes/Makefile.in
  40. +1
    -1
      crypto/objects/Makefile.in
  41. +1
    -1
      crypto/ocsp/Makefile.in
  42. +1
    -1
      crypto/pem/Makefile.in
  43. +1
    -1
      crypto/pkcs12/Makefile.in
  44. +1
    -1
      crypto/pkcs7/Makefile.in
  45. +1
    -1
      crypto/poly1305/Makefile.in
  46. +1
    -1
      crypto/rand/Makefile.in
  47. +1
    -1
      crypto/rc2/Makefile.in
  48. +1
    -1
      crypto/rc4/Makefile.in
  49. +1
    -1
      crypto/rc5/Makefile.in
  50. +1
    -1
      crypto/ripemd/Makefile.in
  51. +1
    -1
      crypto/rsa/Makefile.in
  52. +1
    -1
      crypto/seed/Makefile.in
  53. +1
    -1
      crypto/sha/Makefile.in
  54. +1
    -1
      crypto/srp/Makefile.in
  55. +1
    -1
      crypto/stack/Makefile.in
  56. +1
    -1
      crypto/ts/Makefile.in
  57. +1
    -1
      crypto/txt_db/Makefile.in
  58. +1
    -1
      crypto/ui/Makefile.in
  59. +1
    -1
      crypto/whrlpool/Makefile.in
  60. +1
    -1
      crypto/x509/Makefile.in
  61. +1
    -1
      crypto/x509v3/Makefile.in
  62. +1
    -1
      engines/Makefile.in
  63. +1
    -1
      ssl/Makefile.in
  64. +3
    -2
      util/mk1mf.pl
  65. +2
    -2
      util/pl/VC-32.pl

+ 5
- 2
Configurations/README View File

@ -488,7 +488,8 @@ They are all expected to return a string with the lines they produce.
src2obj(obj => "PATH/TO/objectfile",
srcs => [ "PATH/TO/sourcefile", ... ],
deps => [ "dep1", ... ],
incs => [ "INCL/PATH", ... ]);
incs => [ "INCL/PATH", ... ]
intent => one of "lib", "dso", "bin" );
'obj' has the intended object file *without*
extension, src2obj() is expected to add that.
@ -496,7 +497,9 @@ They are all expected to return a string with the lines they produce.
object file, with the first item being the source
file that directly corresponds to the object file.
'deps' is a list of explicit dependencies. 'incs'
is a list of include file directories.
is a list of include file directories. Finally,
'intent' indicates what this object file is going
to be used for.
obj2lib - function that produces build file lines to build a
static library file ("libfoo.a" in Unix terms) from


+ 6
- 3
Configurations/README.design View File

@ -392,15 +392,18 @@ etc.
src2obj(obj => "PATH/TO/objectfile",
srcs => [ "PATH/TO/sourcefile", ... ],
deps => [ "dep1", ... ],
incs => [ "INCL/PATH", ... ]);
incs => [ "INCL/PATH", ... ]
intent => one of "lib", "dso", "bin" );
'obj' has the intended object file *without*
extension, src2obj() is expected to add that.
'srcs' has the list of source files to build the
object file, with the first item being the source
file that directly corresponds to the object file.
'deps' is a list of dependencies. 'incs' is a list
of include file directories.
'deps' is a list of explicit dependencies. 'incs'
is a list of include file directories. Finally,
'intent' indicates what this object file is going
to be used for.
obj2lib - function that produces build file lines to build a
static library file ("libfoo.a" in Unix terms) from


+ 4
- 2
Configurations/common.tmpl View File

@ -37,12 +37,14 @@
my $obj = shift;
(my $obj_no_o = $obj) =~ s|\.o$||;
my $bin = shift;
my %opts = @_;
if (@{$unified_info{sources}->{$obj}}) {
$OUT .= src2obj(obj => $obj_no_o,
srcs => $unified_info{sources}->{$obj},
deps => [ reducedepends(resolvedepends($obj)) ],
incs => [ @{$unified_info{includes}->{$bin}},
@{$unified_info{includes}->{$obj}} ]);
@{$unified_info{includes}->{$obj}} ],
%opts);
}
}
@ -78,7 +80,7 @@
objs => [ map { (my $x = $_) =~ s|\.o$||; $x }
@{$unified_info{sources}->{$lib}} ],
deps => [ resolvedepends($lib) ]);
map { doobj($_, $lib, intent => "lib") } @{$unified_info{sources}->{$lib}};
map { doobj($_, $lib, intent => "dso") } @{$unified_info{sources}->{$lib}};
}
# dobin is responsible for building programs. It will call obj2bin,


+ 11
- 6
Configurations/unix-Makefile.tmpl View File

@ -43,7 +43,6 @@
# given libname with the simple shared extension (possible SO version
# removed). This differs from shlib_simple() by being unconditional.
sub dso {
return () if $config{no_shared};
my $engine = shift;
return $engine . '$(DSO_EXT)';
@ -149,6 +148,7 @@ CFLAGS_Q={- $cflags2 =~ s|([\\"])|\\$1|g; $cflags2 -} {- $config{cflags} -}
LDFLAGS= {- $config{lflags} -}
PLIB_LDFLAGS= {- $config{plib_lflags} -}
EX_LIBS= {- $config{ex_libs} -}
SHARED_CFLAGS={- $target{shared_cflag} || "" -}
SHARED_LDFLAGS={- $target{shared_ldflag}
# Unlike other OSes (like Solaris, Linux, Tru64,
# IRIX) BSD run-time linkers (tested OpenBSD, NetBSD
@ -164,6 +164,8 @@ SHARED_LDFLAGS={- $target{shared_ldflag}
. ($config{target} =~ m|^BSD-| && $prefix !~ m|^/usr/.*$|
? " -Wl,-rpath,\$\$(LIBRPATH)" : "") -}
SHARED_RCFLAGS={- $target{shared_rcflag} -}
DSO_CFLAGS={- $target{shared_cflag} || "" -}
BIN_CFLAGS={- "" -}
PERL={- $config{perl} -}
@ -823,25 +825,28 @@ configdata.pm: {- $config{build_file_template} -} $(SRCDIR)/Configure $(SRCDIR)/
my $obj = $args{obj};
my $srcs = join(" ", @{$args{srcs}});
my $deps = join(" ", @{$args{srcs}}, @{$args{deps}});
my $incs = join(" ", map { " -I".$_ } @{$args{incs}});
my $incs = join("", map { " -I".$_ } @{$args{incs}});
my $ecflags = { lib => '$(SHARED_CFLAGS)',
dso => '$(DSO_CFLAGS)',
bin => '$(BIN_CFLAGS)' } -> {$args{intent}};
my $makedepprog = $config{makedepprog};
if ($makedepprog eq "makedepend") {
return <<"EOF";
$obj\$(DEP_EXT): $deps
rm -f \$\@.tmp; touch \$\@.tmp
\$(MAKEDEPEND) -f\$\@.tmp -o"|$obj" -- \$(CFLAGS)$incs -- $srcs \\
\$(MAKEDEPEND) -f\$\@.tmp -o"|$obj" -- \$(CFLAGS) $ecflags$incs -- $srcs \\
2>/dev/null
sed -e 's/^.*|//' -e 's/ \\/\\(\\\\.\\|[^ ]\\)*//g' -e '/: *\$\$/d' -e '/^\\(#.*\\| *\\)\$\$/d' \$\@.tmp > \$\@
rm \$\@.tmp
$obj\$(OBJ_EXT): $obj\$(DEP_EXT)
\$(CC) \$(CFLAGS)$incs -c -o \$\@ $srcs
\$(CC) \$(CFLAGS) $ecflags$incs -c -o \$\@ $srcs
EOF
}
return <<"EOF";
$obj\$(DEP_EXT): $deps
\$(CC) \$(CFLAGS)$incs -MM -MF \$\@ -MQ $obj $srcs
\$(CC) \$(CFLAGS) $ecflags$incs -MM -MF \$\@ -MQ $obj $srcs
$obj\$(OBJ_EXT): $obj\$(DEP_EXT)
\$(CC) \$(CFLAGS)$incs -c -o \$\@ $srcs
\$(CC) \$(CFLAGS) $ecflags$incs -c -o \$\@ $srcs
EOF
}
# On Unix, we build shlibs from static libs, so we're ignoring the


+ 0
- 8
Configure View File

@ -983,14 +983,6 @@ if ($target{shared_target} eq "")
$no_shared_warn = 1 if !$config{no_shared} && !$config{fips};
$config{no_shared} = 1;
}
if (!$config{no_shared})
{
if ($target{shared_cflag} ne "")
{
push @{$config{defines}}, "OPENSSL_PIC";
$config{cflags} = "$target{shared_cflag} $config{cflags}";
}
}
if ($builder ne "mk1mf")
{


+ 3
- 1
Makefile.in View File

@ -194,6 +194,7 @@ LIBS= libcrypto.a libssl.a
SHARED_CRYPTO=libcrypto$(SHLIB_EXT)
SHARED_SSL=libssl$(SHLIB_EXT)
SHARED_LIBS={- '$(SHARED_CRYPTO) $(SHARED_SSL)' if (!$config{no_shared}) -}
SHARED_CFLAG={- $target{shared_cflag} -}
SHARED_LDFLAG={- $target{shared_ldflag}
# Unlike other OSes (like Solaris, Linux, Tru64,
# IRIX) BSD run-time linkers (tested OpenBSD, NetBSD
@ -249,9 +250,10 @@ CLEARENV= TOP= && unset TOP $${LIB+LIB} $${LIBS+LIBS} \
# same language for uniform treatment.
BUILDENV= LC_ALL=C PLATFORM='$(PLATFORM)' PROCESSOR='$(PROCESSOR)'\
CC='$(CC)' CFLAG='$(CFLAG)' CFLAG_Q='$(CFLAG_Q)' \
SHARED_CFLAG='$(SHARED_CFLAG)' \
AS='$(CC)' ASFLAG='$(CFLAG) -c' \
AR='$(AR)' NM='$(NM)' RANLIB='$(RANLIB)' \
CROSS_COMPILE='$(CROSS_COMPILE)' \
CROSS_COMPILE='$(CROSS_COMPILE)' \
PERL='$(PERL)' \
SDIRS='$(SDIRS)' LIBRPATH='$(INSTALLTOP)/$(LIBDIR)' \
DESTDIR='$(DESTDIR)' \


+ 1
- 1
crypto/Makefile.in View File

@ -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


+ 1
- 1
crypto/aes/Makefile.in View File

@ -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)


+ 1
- 1
crypto/asn1/Makefile.in View File

@ -10,7 +10,7 @@ CFLAG=-g
MAKEFILE= Makefile
AR= ar r
CFLAGS= $(INCLUDES) $(CFLAG)
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
GENERAL=Makefile README


+ 1
- 1
crypto/async/Makefile.in View File

@ -10,7 +10,7 @@ CFLAG=-g
MAKEFILE= Makefile
AR= ar r
CFLAGS= $(INCLUDES) $(CFLAG)
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
GENERAL=Makefile
TEST=


+ 1
- 1
crypto/bf/Makefile.in View File

@ -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)


+ 1
- 1
crypto/bio/Makefile.in View File

@ -10,7 +10,7 @@ CFLAG=-g
MAKEFILE= Makefile
AR= ar r
CFLAGS= $(INCLUDES) $(CFLAG)
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
GENERAL=Makefile


+ 1
- 1
crypto/bn/Makefile.in View File

@ -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)


+ 1
- 1
crypto/buffer/Makefile.in View File

@ -10,7 +10,7 @@ CFLAG=-g
MAKEFILE= Makefile
AR= ar r
CFLAGS= $(INCLUDES) $(CFLAG)
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
GENERAL=Makefile


+ 1
- 1
crypto/camellia/Makefile.in View File

@ -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)


+ 1
- 1
crypto/cast/Makefile.in View File

@ -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)


+ 1
- 1
crypto/chacha/Makefile.in View File

@ -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)


+ 1
- 1
crypto/cmac/Makefile.in View File

@ -10,7 +10,7 @@ CFLAG=-g
MAKEFILE= Makefile
AR= ar r
CFLAGS= $(INCLUDES) $(CFLAG)
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
GENERAL=Makefile


+ 1
- 1
crypto/cms/Makefile.in View File

@ -10,7 +10,7 @@ CFLAG=-g
MAKEFILE= Makefile
AR= ar r
CFLAGS= $(INCLUDES) $(CFLAG)
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
GENERAL=Makefile


+ 1
- 1
crypto/comp/Makefile.in View File

@ -10,7 +10,7 @@ CFLAG=-g
MAKEFILE= Makefile
AR= ar r
CFLAGS= $(INCLUDES) $(CFLAG)
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
GENERAL=Makefile


+ 1
- 1
crypto/conf/Makefile.in View File

@ -10,7 +10,7 @@ CFLAG=-g
MAKEFILE= Makefile
AR= ar r
CFLAGS= $(INCLUDES) $(CFLAG)
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
GENERAL=Makefile


+ 1
- 1
crypto/ct/Makefile.in View File

@ -10,7 +10,7 @@ CFLAG=-g
MAKEFILE= Makefile
AR= ar r
CFLAGS= $(INCLUDES) $(CFLAG)
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
GENERAL=Makefile


+ 1
- 1
crypto/des/Makefile.in View File

@ -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)


+ 1
- 1
crypto/dh/Makefile.in View File

@ -10,7 +10,7 @@ CFLAG=-g
MAKEFILE= Makefile
AR= ar r
CFLAGS= $(INCLUDES) $(CFLAG)
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
GENERAL=Makefile


+ 1
- 1
crypto/dsa/Makefile.in View File

@ -10,7 +10,7 @@ CFLAG=-g
MAKEFILE= Makefile
AR= ar r
CFLAGS= $(INCLUDES) $(CFLAG)
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
GENERAL=Makefile


+ 1
- 1
crypto/dso/Makefile.in View File

@ -10,7 +10,7 @@ CFLAG=-g
MAKEFILE= Makefile
AR= ar r
CFLAGS= $(INCLUDES) $(CFLAG)
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
GENERAL=Makefile


+ 1
- 1
crypto/ec/Makefile.in View File

@ -10,7 +10,7 @@ CFLAG=-g
MAKEFILE= Makefile
AR= ar r
CFLAGS= $(INCLUDES) $(CFLAG)
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
ASFLAGS= $(INCLUDES) $(ASFLAG)
AFLAGS= $(ASFLAGS)


+ 1
- 1
crypto/engine/Makefile.in View File

@ -10,7 +10,7 @@ CFLAG=-g
MAKEFILE= Makefile
AR= ar r
CFLAGS= $(INCLUDES) $(CFLAG)
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
GENERAL=Makefile


+ 1
- 1
crypto/err/Makefile.in View File

@ -10,7 +10,7 @@ CFLAG=-g
MAKEFILE= Makefile
AR= ar r
CFLAGS= $(INCLUDES) $(CFLAG)
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
GENERAL=Makefile


+ 1
- 1
crypto/evp/Makefile.in View File

@ -10,7 +10,7 @@ CFLAG=-g
MAKEFILE= Makefile
AR= ar r
CFLAGS= $(INCLUDES) $(CFLAG)
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
GENERAL=Makefile


+ 1
- 1
crypto/hmac/Makefile.in View File

@ -10,7 +10,7 @@ CFLAG=-g
MAKEFILE= Makefile
AR= ar r
CFLAGS= $(INCLUDES) $(CFLAG)
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
GENERAL=Makefile


+ 1
- 1
crypto/idea/Makefile.in View File

@ -10,7 +10,7 @@ CFLAG=-g
MAKEFILE= Makefile
AR= ar r
CFLAGS= $(INCLUDES) $(CFLAG)
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
GENERAL=Makefile


+ 1
- 1
crypto/kdf/Makefile.in View File

@ -10,7 +10,7 @@ CFLAG=-g
MAKEFILE= Makefile
AR= ar r
CFLAGS= $(INCLUDES) $(CFLAG)
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
GENERAL=Makefile


+ 1
- 1
crypto/lhash/Makefile.in View File

@ -10,7 +10,7 @@ CFLAG=-g
MAKEFILE= Makefile
AR= ar r
CFLAGS= $(INCLUDES) $(CFLAG)
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
GENERAL=Makefile


+ 1
- 1
crypto/md2/Makefile.in View File

@ -10,7 +10,7 @@ CFLAG=-g
MAKEFILE= Makefile
AR= ar r
CFLAGS= $(INCLUDES) $(CFLAG)
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
GENERAL=Makefile


+ 1
- 1
crypto/md4/Makefile.in View File

@ -11,7 +11,7 @@ CFLAG=-g
MAKEFILE= Makefile
AR= ar r
CFLAGS= $(INCLUDES) $(CFLAG)
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
GENERAL=Makefile


+ 1
- 1
crypto/md5/Makefile.in View File

@ -13,7 +13,7 @@ AR= ar r
MD5_ASM_OBJ=
CFLAGS= $(INCLUDES) $(CFLAG)
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
ASFLAGS= $(INCLUDES) $(ASFLAG)
AFLAGS= $(ASFLAGS)


+ 1
- 1
crypto/mdc2/Makefile.in View File

@ -10,7 +10,7 @@ CFLAG=-g
MAKEFILE= Makefile
AR= ar r
CFLAGS= $(INCLUDES) $(CFLAG)
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
GENERAL=Makefile


+ 1
- 1
crypto/modes/Makefile.in View File

@ -12,7 +12,7 @@ AR= ar r
MODES_ASM_OBJ=
CFLAGS= $(INCLUDES) $(CFLAG)
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
ASFLAGS= $(INCLUDES) $(ASFLAG)
AFLAGS= $(ASFLAGS)


+ 1
- 1
crypto/objects/Makefile.in View File

@ -11,7 +11,7 @@ MAKEFILE= Makefile
AR= ar r
PERL= perl
CFLAGS= $(INCLUDES) $(CFLAG)
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
GENERAL=Makefile README


+ 1
- 1
crypto/ocsp/Makefile.in View File

@ -10,7 +10,7 @@ CFLAG=-g
MAKEFILE= Makefile
AR= ar r
CFLAGS= $(INCLUDES) $(CFLAG)
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
GENERAL=Makefile README


+ 1
- 1
crypto/pem/Makefile.in View File

@ -10,7 +10,7 @@ CFLAG=-g
MAKEFILE= Makefile
AR= ar r
CFLAGS= $(INCLUDES) $(CFLAG)
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
GENERAL=Makefile


+ 1
- 1
crypto/pkcs12/Makefile.in View File

@ -10,7 +10,7 @@ CFLAG=-g
MAKEFILE= Makefile
AR= ar r
CFLAGS= $(INCLUDES) $(CFLAG)
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
GENERAL=Makefile


+ 1
- 1
crypto/pkcs7/Makefile.in View File

@ -13,7 +13,7 @@ AR= ar r
PLIB_LDFLAG=
EX_LIBS=
CFLAGS= $(INCLUDES) $(CFLAG)
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
GENERAL=Makefile README


+ 1
- 1
crypto/poly1305/Makefile.in View File

@ -12,7 +12,7 @@ AR= ar r
POLY1305_ASM_OBJ=
CFLAGS= $(INCLUDES) $(CFLAG)
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
ASFLAGS= $(INCLUDES) $(ASFLAG)
AFLAGS= $(ASFLAGS)


+ 1
- 1
crypto/rand/Makefile.in View File

@ -10,7 +10,7 @@ CFLAG=-g
MAKEFILE= Makefile
AR= ar r
CFLAGS= $(INCLUDES) $(CFLAG)
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
GENERAL=Makefile


+ 1
- 1
crypto/rc2/Makefile.in View File

@ -10,7 +10,7 @@ CFLAG=-g
MAKEFILE= Makefile
AR= ar r
CFLAGS= $(INCLUDES) $(CFLAG)
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
GENERAL=Makefile


+ 1
- 1
crypto/rc4/Makefile.in View File

@ -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)


+ 1
- 1
crypto/rc5/Makefile.in View File

@ -13,7 +13,7 @@ AR= ar r
RC5_ENC= rc5_enc.o
CFLAGS= $(INCLUDES) $(CFLAG)
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
ASFLAGS= $(INCLUDES) $(ASFLAG)
AFLAGS= $(ASFLAGS)


+ 1
- 1
crypto/ripemd/Makefile.in View File

@ -13,7 +13,7 @@ AR= ar r
RIP_ASM_OBJ=
CFLAGS= $(INCLUDES) $(CFLAG)
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
ASFLAGS= $(INCLUDES) $(ASFLAG)
AFLAGS= $(ASFLAGS)


+ 1
- 1
crypto/rsa/Makefile.in View File

@ -10,7 +10,7 @@ CFLAG=-g
MAKEFILE= Makefile
AR= ar r
CFLAGS= $(INCLUDES) $(CFLAG)
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
GENERAL=Makefile


+ 1
- 1
crypto/seed/Makefile.in View File

@ -11,7 +11,7 @@ CFLAG=-g
MAKEFILE= Makefile
AR= ar r
CFLAGS= $(INCLUDES) $(CFLAG)
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
GENERAL=Makefile


+ 1
- 1
crypto/sha/Makefile.in View File

@ -13,7 +13,7 @@ AR= ar r
SHA1_ASM_OBJ=
CFLAGS= $(INCLUDES) $(CFLAG)
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
ASFLAGS= $(INCLUDES) $(ASFLAG)
AFLAGS= $(ASFLAGS)


+ 1
- 1
crypto/srp/Makefile.in View File

@ -8,7 +8,7 @@ OPENSSLDIR= /usr/local/ssl
INSTALLTOP=/usr/local/ssl
AR= ar r
CFLAGS= $(INCLUDES) $(CFLAG)
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
GENERAL=Makefile


+ 1
- 1
crypto/stack/Makefile.in View File

@ -10,7 +10,7 @@ CFLAG=-g
MAKEFILE= Makefile
AR= ar r
CFLAGS= $(INCLUDES) $(CFLAG)
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
GENERAL=Makefile


+ 1
- 1
crypto/ts/Makefile.in View File

@ -14,7 +14,7 @@ AR= ar r
PLIB_LDFLAG=
EX_LIBS=
CFLAGS= $(INCLUDES) $(CFLAG)
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
GENERAL= Makefile


+ 1
- 1
crypto/txt_db/Makefile.in View File

@ -10,7 +10,7 @@ CFLAG=-g
MAKEFILE= Makefile
AR= ar r
CFLAGS= $(INCLUDES) $(CFLAG)
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
GENERAL=Makefile


+ 1
- 1
crypto/ui/Makefile.in View File

@ -10,7 +10,7 @@ CFLAG=-g
MAKEFILE= Makefile
AR= ar r
CFLAGS= $(INCLUDES) $(CFLAG)
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
GENERAL=Makefile


+ 1
- 1
crypto/whrlpool/Makefile.in View File

@ -13,7 +13,7 @@ AR= ar r
WP_ASM_OBJ=wp_block.o
CFLAGS= $(INCLUDES) $(CFLAG)
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
ASFLAGS= $(INCLUDES) $(ASFLAG)
AFLAGS= $(ASFLAGS)


+ 1
- 1
crypto/x509/Makefile.in View File

@ -10,7 +10,7 @@ CFLAG=-g
MAKEFILE= Makefile
AR= ar r
CFLAGS= $(INCLUDES) $(CFLAG)
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
GENERAL=Makefile README


+ 1
- 1
crypto/x509v3/Makefile.in View File

@ -10,7 +10,7 @@ CFLAG=-g
MAKEFILE= Makefile
AR= ar r
CFLAGS= $(INCLUDES) $(CFLAG)
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
GENERAL=Makefile README


+ 1
- 1
engines/Makefile.in View File

@ -18,7 +18,7 @@ PADLOCK_ASM_OBJ=
PLIB_LDFLAG=
EX_LIBS=
CFLAGS= $(INCLUDES) $(CFLAG)
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
ASFLAGS= $(INCLUDES) $(ASFLAG)
AFLAGS= $(ASFLAGS)


+ 1
- 1
ssl/Makefile.in View File

@ -10,7 +10,7 @@ CFLAG=-g
MAKEFILE= Makefile
AR= ar r
CFLAGS= $(INCLUDES) $(CFLAG)
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
GENERAL=Makefile README ssl-lib.com install.com


+ 3
- 2
util/mk1mf.pl View File

@ -53,6 +53,7 @@ my %mf_import = (
CC => \$mf_cc,
CFLAG => \$mf_cflag,
CFLAG_Q => \$mf_cflag_q,
SHARED_CFLAG => \$mf_shared_cflag,
DEPFLAG => \$mf_depflag,
CPUID_OBJ => \$mf_cpuid_asm,
BN_ASM => \$mf_bn_asm,
@ -309,7 +310,7 @@ $cflags.=" -DOPENSSL_FIPS" if $fips;
$cflags.=" -DOPENSSL_NO_EC2M" if $no_ec2m;
$cflags.= " -DZLIB" if $zlib_opt;
$cflags.= " -DZLIB_SHARED" if $zlib_opt == 2;
$cflags.=" -DOPENSSL_PIC" if $shlib;
$cflags.=" -DOPENSSL_PIC";
if ($no_static_engine)
{
@ -328,7 +329,7 @@ else
{ $cflags="$c_flags$cflags" if ($c_flags ne ""); }
if ($orig_platform eq 'copy') {
$cflags = $mf_cflag;
$cflags = "$mf_cflag $mf_shared_cflag";
$cc = $mf_cc;
}


+ 2
- 2
util/pl/VC-32.pl View File

@ -49,7 +49,7 @@ if ($FLAVOR =~ /WIN64/)
# per 0.9.8 release remaining warnings were explicitly examined and
# considered safe to ignore.
#
$base_cflags= " $mf_cflag";
$base_cflags= " $mf_cflag" . ($mf_shared_cflag ? " $mf_shared_cflag" : "");
my $f = ($shlib and !$fipscanisterbuild)?' /MD':' /MT';
$opt_cflags=$f.' /Ox';
$dbg_cflags=$f.'d /Od -DDEBUG -D_DEBUG';
@ -138,7 +138,7 @@ elsif ($FLAVOR =~ /CE/)
}
else # Win32
{
$base_cflags= " $mf_cflag";
$base_cflags= " $mf_cflag" . ($mf_shared_cflag ? " $mf_shared_cflag" : "");
my $f = ($shlib and !$fipscanisterbuild)?' /MD':' /MT';
$opt_cflags=$f.' /Ox /O2 /Ob2';
$dbg_cflags=$f.'d /Od -DDEBUG -D_DEBUG';


Loading…
Cancel
Save