diff options
author | Richard Levitte <levitte@openssl.org> | 2016-02-27 11:37:33 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2016-03-02 19:15:42 +0100 |
commit | 98fdbce09144a8addc6682a0ffd8ac92b2ce70b1 (patch) | |
tree | 35c5da21605d51543ea872ea5a7237e375f17fdf /Configurations/10-main.conf | |
parent | d2b2221a04053578911d34a45026543e4c39ce0c (diff) | |
download | openssl-98fdbce09144a8addc6682a0ffd8ac92b2ce70b1.tar.gz |
Configure - move the addition of the zlib / libz lib to configs
Configure had the Unix centric addition of -lz when linking with zlib
is enabled, which doesn't work on other platforms. Therefore, we move
it to the BASE_unix config template and add corresponding ones in the
other BASE_* config templates. The Windows one is probably incomplete,
but that doesn't matter for the moment, as mk1mf does it's own thing
anyway.
This required making the %withargs table global, so perl snippets in
the configs can use it.
Reviewed-by: Andy Polyakov <appro@openssl.org>
Diffstat (limited to 'Configurations/10-main.conf')
-rw-r--r-- | Configurations/10-main.conf | 70 |
1 files changed, 36 insertions, 34 deletions
diff --git a/Configurations/10-main.conf b/Configurations/10-main.conf index 61a9c6ca9e..3b904031b6 100644 --- a/Configurations/10-main.conf +++ b/Configurations/10-main.conf @@ -37,7 +37,7 @@ inherit_from => [ "BASE_unix" ], template => 1, cflags => "-DFILIO_H", - ex_libs => "-lresolv -lsocket -lnsl -ldl", + ex_libs => add("-lresolv -lsocket -lnsl -ldl"), dso_scheme => "dlfcn", shared_target => "solaris-shared", shared_extension => ".so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", @@ -229,7 +229,7 @@ debug_cflags => "-g -O0", release_cflags => "-O2", thread_cflag => "-D_SGI_MP_SOURCE", - ex_libs => "-lpthread", + ex_libs => add("-lpthread"), bn_ops => "RC4_CHAR SIXTY_FOUR_BIT", perlasm_scheme => "n32", dso_scheme => "dlfcn", @@ -261,7 +261,7 @@ debug_cflags => "-g -O0", release_cflags => "-O2", thread_cflag => "-D_SGI_MP_SOURCE", - ex_libs => "-lpthread", + ex_libs => add("-lpthread"), bn_ops => "RC4_CHAR SIXTY_FOUR_BIT_LONG", perlasm_scheme => "64", dso_scheme => "dlfcn", @@ -306,7 +306,7 @@ debug_cflags => "-O0 -g", release_cflags => "-O3", thread_cflag => "-pthread", - ex_libs => "-Wl,+s -ldld", + ex_libs => add("-Wl,+s -ldld"), bn_ops => "BN_LLONG", dso_scheme => "dl", shared_target => "hpux-shared", @@ -325,7 +325,7 @@ debug_cflags => "-O0 -g", release_cflags => "-O3", thread_cflag => "-D_REENTRANT", - ex_libs => "-ldl", + ex_libs => add("-ldl"), bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHAR", dso_scheme => "dlfcn", shared_target => "hpux-shared", @@ -346,7 +346,7 @@ debug_cflags => "+O0 +d -g", release_cflags => "+O3", thread_cflag => "-D_REENTRANT", - ex_libs => "-Wl,+s -ldld -lpthread", + ex_libs => add("-Wl,+s -ldld -lpthread"), bn_ops => "RC4_CHAR", dso_scheme => "dl", shared_target => "hpux-shared", @@ -366,7 +366,7 @@ debug_cflags => "+O0 +d -g", release_cflags => "+O3", thread_cflag => "-D_REENTRANT", - ex_libs => "-ldl -lpthread", + ex_libs => add("-ldl -lpthread"), bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHAR", dso_scheme => "dlfcn", shared_target => "hpux-shared", @@ -384,7 +384,7 @@ debug_cflags => "+O0 +d -g", release_cflags => "+O2", thread_cflag => "-D_REENTRANT", - ex_libs => "-ldl -lpthread", + ex_libs => add("-ldl -lpthread"), bn_ops => "SIXTY_FOUR_BIT", dso_scheme => "dlfcn", shared_target => "hpux-shared", @@ -402,7 +402,7 @@ debug_cflags => "+O0 +d -g", release_cflags => "+O3", thread_cflag => "-D_REENTRANT", - ex_libs => "-ldl -lpthread", + ex_libs => add("-ldl -lpthread"), bn_ops => "SIXTY_FOUR_BIT_LONG", dso_scheme => "dlfcn", shared_target => "hpux-shared", @@ -419,7 +419,7 @@ debug_cflags => "-O0 -g", release_cflags => "-O3", thread_cflag => "-pthread", - ex_libs => "-ldl", + ex_libs => add("-ldl"), bn_ops => "SIXTY_FOUR_BIT", dso_scheme => "dlfcn", shared_target => "hpux-shared", @@ -435,7 +435,7 @@ debug_cflags => "-O0 -g", release_cflags => "-O3", thread_cflag => "-pthread", - ex_libs => "-ldl", + ex_libs => add("-ldl"), bn_ops => "SIXTY_FOUR_BIT_LONG", dso_scheme => "dlfcn", shared_target => "hpux-shared", @@ -452,7 +452,7 @@ cflags => "-D_ENDIAN -DBN_DIV2W -O3 -D_POSIX_SOURCE -D_SOCKET_SOURCE -I/SYSLOG/PUB", thread_cflag => "(unknown)", sys_id => "MPE", - ex_libs => "-L/SYSLOG/PUB -lsyslog -lsocket -lcurses", + ex_libs => add("-L/SYSLOG/PUB -lsyslog -lsocket -lcurses"), bn_ops => "BN_LLONG", }, @@ -501,7 +501,7 @@ debug_cflags => "-O0 -g -DBN_DEBUG -DREF_DEBUG -DCONF_DEBUG", release_cflags => "-O3", thread_cflag => "-pthread", - ex_libs => "-ldl", + ex_libs => add("-ldl"), bn_ops => "BN_LLONG RC4_CHAR", dso_scheme => "dlfcn", shared_target => "linux-shared", @@ -765,7 +765,6 @@ cflags => "-mandroid -fPIC --sysroot=\$(CROSS_SYSROOT) -Wa,--noexecstack -Wall", debug_cflags => "-O0 -g", lflags => "-pie", - ex_libs => "-ldl", shared_cflag => "", }, "android-x86" => { @@ -808,7 +807,6 @@ cflags => "-mandroid -fPIC --sysroot=\$(CROSS_SYSROOT) -Wa,--noexecstack -Wall", debug_cflags => "-O0 -g", lflags => "-pie", - ex_libs => "-ldl", shared_cflag => "", }, "android64-aarch64" => { @@ -886,7 +884,7 @@ cc => "gcc", cflags => "-DPERL5 -DL_ENDIAN -fomit-frame-pointer -O3 -Wall", thread_cflag => "(unknown)", - ex_libs => "-ldl", + ex_libs => add("-ldl"), bn_ops => "BN_LLONG", dso_scheme => "dlfcn", shared_target => "bsd-gcc-shared", @@ -921,7 +919,7 @@ "QNX6" => { inherit_from => [ "BASE_unix" ], cc => "gcc", - ex_libs => "-lsocket", + ex_libs => add("-lsocket"), dso_scheme => "dlfcn", shared_target => "bsd-gcc-shared", shared_cflag => "-fPIC", @@ -931,7 +929,7 @@ inherit_from => [ "BASE_unix", asm("x86_elf_asm") ], cc => "gcc", cflags => "-DL_ENDIAN -O2 -Wall", - ex_libs => "-lsocket", + ex_libs => add("-lsocket"), dso_scheme => "dlfcn", shared_target => "bsd-gcc-shared", shared_cflag => "-fPIC", @@ -955,21 +953,21 @@ cc => "cc", cflags => "-DFILIO_H -DNO_STRINGS_H", thread_cflag => "-Kthread", - ex_libs => "-lsocket -lnsl -lresolv -lx", + ex_libs => add("-lsocket -lnsl -lresolv -lx"), }, "unixware-2.1" => { inherit_from => [ "BASE_unix" ], cc => "cc", cflags => "-O -DFILIO_H", thread_cflag => "-Kthread", - ex_libs => "-lsocket -lnsl -lresolv -lx", + ex_libs => add("-lsocket -lnsl -lresolv -lx"), }, "unixware-7" => { inherit_from => [ "BASE_unix", asm("x86_elf_asm") ], cc => "cc", cflags => "-O -DFILIO_H -Kalloca", thread_cflag => "-Kthread", - ex_libs => "-lsocket -lnsl", + ex_libs => add("-lsocket -lnsl"), bn_ops => "BN_LLONG", perlasm_scheme => "elf-1", dso_scheme => "dlfcn", @@ -982,7 +980,7 @@ cc => "gcc", cflags => "-DL_ENDIAN -DFILIO_H -O3 -fomit-frame-pointer -Wall", thread_cflag => "-D_REENTRANT", - ex_libs => "-lsocket -lnsl", + ex_libs => add("-lsocket -lnsl"), bn_ops => "BN_LLONG", perlasm_scheme => "elf-1", dso_scheme => "dlfcn", @@ -996,7 +994,7 @@ cc => "cc", cflags => "-belf", thread_cflag => "(unknown)", - ex_libs => "-lsocket -lnsl", + ex_libs => add("-lsocket -lnsl"), perlasm_scheme => "elf-1", dso_scheme => "dlfcn", shared_target => "svr3-shared", @@ -1008,7 +1006,7 @@ cc => "gcc", cflags => "-O3 -fomit-frame-pointer", thread_cflag => "(unknown)", - ex_libs => "-lsocket -lnsl", + ex_libs => add("-lsocket -lnsl"), bn_ops => "BN_LLONG", perlasm_scheme => "elf-1", dso_scheme => "dlfcn", @@ -1092,7 +1090,7 @@ cc => "c89", cflags => "-O -XLLML -XLLMK -XL -DB_ENDIAN -DCHARSET_EBCDIC", thread_cflag => "(unknown)", - ex_libs => "-lsocket -lnsl", + ex_libs => add("-lsocket -lnsl"), bn_ops => "THIRTY_TWO_BIT RC4_CHAR", }, @@ -1181,7 +1179,7 @@ release_cflags => "-O3 -fomit-frame-pointer", thread_cflag => "-D_MT", sys_id => "MINGW32", - ex_libs => "-lws2_32 -lgdi32 -lcrypt32", + ex_libs => add("-lws2_32 -lgdi32 -lcrypt32"), bn_ops => "BN_LLONG EXPORT_VAR_AS_FN", perlasm_scheme => "coff", dso_scheme => "win32", @@ -1208,7 +1206,7 @@ release_cflags => "-O3", thread_cflag => "-D_MT", sys_id => "MINGW64", - ex_libs => "-lws2_32 -lgdi32 -lcrypt32", + ex_libs => add("-lws2_32 -lgdi32 -lcrypt32"), bn_ops => "SIXTY_FOUR_BIT EXPORT_VAR_AS_FN", perlasm_scheme => "mingw64", dso_scheme => "win32", @@ -1344,7 +1342,7 @@ cc => "gcc", cflags => "-I/dev/env/WATT_ROOT/inc -DTERMIO -DL_ENDIAN -fomit-frame-pointer -O2 -Wall", sys_id => "MSDOS", - ex_libs => "-L/dev/env/WATT_ROOT/lib -lwatt", + ex_libs => add("-L/dev/env/WATT_ROOT/lib -lwatt"), bn_ops => "BN_LLONG", perlasm_scheme => "a.out", }, @@ -1458,7 +1456,7 @@ cc => "gcc", cflags => "-DL_ENDIAN -O3 -fomit-frame-pointer -Wall", thread_cflag => "-pthread", - ex_libs => "-ldl", + ex_libs => add("-ldl"), bn_ops => "BN_LLONG", dso_scheme => "dlfcn", shared_target => "linux-shared", @@ -1477,14 +1475,14 @@ cc => "ccppc", cflags => "-D_REENTRANT -mrtp -mhard-float -mstrict-align -fno-implicit-fp -DPPC32_fp60x -O2 -fstrength-reduce -fno-builtin -fno-strict-aliasing -Wall -DCPU=PPC32 -DTOOL_FAMILY=gnu -DTOOL=gnu -I\$(WIND_BASE)/target/usr/h -I\$(WIND_BASE)/target/usr/h/wrn/coreip", sys_id => "VXWORKS", - ex_libs => "-Wl,--defsym,__wrs_rtp_base=0xe0000000 -L \$(WIND_BASE)/target/usr/lib/ppc/PPC32/common", + ex_libs => add("-Wl,--defsym,__wrs_rtp_base=0xe0000000 -L \$(WIND_BASE)/target/usr/lib/ppc/PPC32/common"), }, "vxworks-ppcgen" => { inherit_from => [ "BASE_unix" ], cc => "ccppc", cflags => "-D_REENTRANT -mrtp -msoft-float -mstrict-align -O1 -fno-builtin -fno-strict-aliasing -Wall -DCPU=PPC32 -DTOOL_FAMILY=gnu -DTOOL=gnu -I\$(WIND_BASE)/target/usr/h -I\$(WIND_BASE)/target/usr/h/wrn/coreip", sys_id => "VXWORKS", - ex_libs => "-Wl,--defsym,__wrs_rtp_base=0xe0000000 -L \$(WIND_BASE)/target/usr/lib/ppc/PPC32/sfcommon", + ex_libs => add("-Wl,--defsym,__wrs_rtp_base=0xe0000000 -L \$(WIND_BASE)/target/usr/lib/ppc/PPC32/sfcommon"), }, "vxworks-ppc405" => { inherit_from => [ "BASE_unix" ], @@ -1528,7 +1526,7 @@ cflags => "-mrtp -mips2 -O -G 0 -B\$(WIND_BASE)/host/\$(WIND_HOST_TYPE)/lib/gcc-lib/ -D_VSB_CONFIG_FILE=\"\$(WIND_BASE)/target/lib/h/config/vsbConfig.h\" -DCPU=MIPS32 -msoft-float -mno-branch-likely -DTOOL_FAMILY=gnu -DTOOL=gnu -fno-builtin -fno-defer-pop -DNO_STRINGS_H -I\$(WIND_BASE)/target/usr/h -I\$(WIND_BASE)/target/h/wrn/coreip", thread_cflag => "-D_REENTRANT", sys_id => "VXWORKS", - ex_libs => "-Wl,--defsym,__wrs_rtp_base=0xe0000000 -L \$(WIND_BASE)/target/usr/lib/mips/MIPSI32/sfcommon", + ex_libs => add("-Wl,--defsym,__wrs_rtp_base=0xe0000000 -L \$(WIND_BASE)/target/usr/lib/mips/MIPSI32/sfcommon"), perlasm_scheme => "o32", ranlib => "ranlibmips", }, @@ -1540,7 +1538,7 @@ cflags => "\$(CFLAGS)", thread_cflag => "-D_REENTRANT", plib_lflags => "\$(LDFLAGS)", - ex_libs => "\$(LDLIBS)", + ex_libs => add("\$(LDLIBS)"), bn_ops => "BN_LLONG", dso_scheme => "$ENV{'LIBSSL_dlfcn'}", shared_target => "linux-shared", @@ -1555,7 +1553,7 @@ cflags => "\$(CFLAGS)", thread_cflag => "-D_REENTRANT", plib_lflags => "\$(LDFLAGS)", - ex_libs => "\$(LDLIBS)", + ex_libs => add("\$(LDLIBS)"), bn_ops => "SIXTY_FOUR_BIT_LONG", dso_scheme => "$ENV{'LIBSSL_dlfcn'}", shared_target => "linux-shared", @@ -1603,10 +1601,12 @@ "vms-alpha-P32" => { inherit_from => [ "vms-alpha" ], cflags => add("/POINTER_SIZE=32"), + ex_libs => sub { join(",", map { s|SHR([\./])|SHR32$1|g; $_ } @_) }, }, "vms-alpha-P64" => { inherit_from => [ "vms-alpha" ], cflags => add("/POINTER_SIZE=64"), + ex_libs => sub { join(",", map { s|SHR([\./])|SHR64$1|g; $_ } @_) }, }, "vms-ia64" => { inherit_from => [ "vms-generic" ], @@ -1618,10 +1618,12 @@ "vms-ia64-P32" => { inherit_from => [ "vms-ia64" ], cflags => add("/POINTER_SIZE=32"), + ex_libs => sub { join(",", map { s|SHR([\./])|SHR32$1|g; $_ } @_) }, }, "vms-ia64-P64" => { inherit_from => [ "vms-ia64" ], cflags => add("/POINTER_SIZE=64"), + ex_libs => sub { join(",", map { s|SHR([\./])|SHR64$1|g; $_ } @_) }, }, ); |