Skip to content

Commit

Permalink
Remove x86_gcc_des,x86_gcc_opts
Browse files Browse the repository at this point in the history
This is a followin from !1738, we no longer need those variables.

Reviewed-by: Richard Levitte <levitte@openssl.org>
  • Loading branch information
richsalz authored and Rich Salz committed Jan 29, 2016
1 parent 8ce4e7e commit a01dab9
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 41 deletions.
53 changes: 22 additions & 31 deletions Configurations/10-main.conf
Expand Up @@ -57,7 +57,7 @@
debug_cflags => "-O0 -g",
release_cflags => "-O3 -fomit-frame-pointer",
thread_cflag => "-pthread",
bn_ops => "BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}",
bn_ops => "BN_LLONG",
shared_cflag => "-fPIC",
shared_ldflag => "-shared",
},
Expand Down Expand Up @@ -607,7 +607,7 @@
debug_cflags => "-O0 -g -DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG",
release_cflags => "-O3 -fomit-frame-pointer",
debug_lflags => "-lefence",
bn_ops => "BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}",
bn_ops => "BN_LLONG",
},
"linux-aout" => {
inherit_from => [ asm("x86_asm") ],
Expand All @@ -616,7 +616,7 @@
debug_cflags => "-O0 -g",
release_cflags => "-O3 -fomit-frame-pointer",
thread_cflag => "(unknown)",
bn_ops => "BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}",
bn_ops => "BN_LLONG",
perlasm_scheme => "a.out",
},

Expand Down Expand Up @@ -762,7 +762,7 @@
"android-x86" => {
inherit_from => [ "android", asm("x86_asm") ],
release_cflags => "-O3 -fomit-frame-pointer",
bn_ops => "BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}",
bn_ops => "BN_LLONG",
perlasm_scheme => "android",
},
################################################################
Expand Down Expand Up @@ -839,7 +839,7 @@
inherit_from => [ "BSD-generic32", asm("x86_asm") ],
cflags => "-DL_ENDIAN -Wall",
release_cflags => "-O3 -fomit-frame-pointer",
bn_ops => "BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}",
bn_ops => "BN_LLONG",
shared_target => "bsd-shared",
perlasm_scheme => "a.out",
},
Expand Down Expand Up @@ -880,7 +880,7 @@
cflags => "-DPERL5 -DL_ENDIAN -fomit-frame-pointer -O3 -march=i486 -Wall",
thread_cflag => "(unknown)",
lflags => "-ldl",
bn_ops => "BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}",
bn_ops => "BN_LLONG",
dso_scheme => "dlfcn",
shared_target => "bsd-gcc-shared",
shared_cflag => "-fPIC",
Expand All @@ -892,22 +892,21 @@
cflags => "-O -Wall",
unistd => "<libc.h>",
thread_cflag => "(unknown)",
bn_ops => "BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}",
bn_ops => "BN_LLONG",
},
"nextstep3.3" => {
cc => "cc",
cflags => "-O3 -Wall",
unistd => "<libc.h>",
thread_cflag => "(unknown)",
bn_ops => "BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}",
bn_ops => "BN_LLONG",
},

# QNX
"qnx4" => {
cc => "cc",
cflags => "-DL_ENDIAN -DTERMIO",
thread_cflag => "(unknown)",
bn_ops => "${x86_gcc_des} ${x86_gcc_opts}",
},
"QNX6" => {
cc => "gcc",
Expand All @@ -922,7 +921,6 @@
cc => "gcc",
cflags => "-DL_ENDIAN -O2 -Wall",
lflags => "-lsocket",
bn_ops => "${x86_gcc_des} ${x86_gcc_opts}",
dso_scheme => "dlfcn",
shared_target => "bsd-gcc-shared",
shared_cflag => "-fPIC",
Expand All @@ -946,22 +944,20 @@
cflags => "-DFILIO_H -DNO_STRINGS_H",
thread_cflag => "-Kthread",
lflags => "-lsocket -lnsl -lresolv -lx",
bn_ops => "${x86_gcc_des} ${x86_gcc_opts}",
},
"unixware-2.1" => {
cc => "cc",
cflags => "-O -DFILIO_H",
thread_cflag => "-Kthread",
lflags => "-lsocket -lnsl -lresolv -lx",
bn_ops => "${x86_gcc_des} ${x86_gcc_opts}",
},
"unixware-7" => {
inherit_from => [ asm("x86_elf_asm") ],
cc => "cc",
cflags => "-O -DFILIO_H -Kalloca",
thread_cflag => "-Kthread",
lflags => "-lsocket -lnsl",
bn_ops => "BN_LLONG ${x86_gcc_des}",
bn_ops => "BN_LLONG",
perlasm_scheme => "elf-1",
dso_scheme => "dlfcn",
shared_target => "svr5-shared",
Expand All @@ -974,7 +970,7 @@
cflags => "-DL_ENDIAN -DFILIO_H -O3 -fomit-frame-pointer -march=pentium -Wall",
thread_cflag => "-D_REENTRANT",
lflags => "-lsocket -lnsl",
bn_ops => "BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}",
bn_ops => "BN_LLONG",
perlasm_scheme => "elf-1",
dso_scheme => "dlfcn",
shared_target => "gnu-shared",
Expand All @@ -988,7 +984,6 @@
cflags => "-belf",
thread_cflag => "(unknown)",
lflags => "-lsocket -lnsl",
bn_ops => "${x86_gcc_des} ${x86_gcc_opts}",
perlasm_scheme => "elf-1",
dso_scheme => "dlfcn",
shared_target => "svr3-shared",
Expand All @@ -1001,7 +996,7 @@
cflags => "-O3 -fomit-frame-pointer",
thread_cflag => "(unknown)",
lflags => "-lsocket -lnsl",
bn_ops => "BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}",
bn_ops => "BN_LLONG",
perlasm_scheme => "elf-1",
dso_scheme => "dlfcn",
shared_target => "svr3-shared",
Expand Down Expand Up @@ -1137,14 +1132,14 @@
# configure with 'perl Configure VC-WIN32 -DUNICODE -D_UNICODE'
inherit_from => [ "VC-common", asm("x86_asm") ],
sys_id => "WIN32",
bn_ops => "BN_LLONG EXPORT_VAR_AS_FN ${x86_gcc_opts}",
bn_ops => "BN_LLONG EXPORT_VAR_AS_FN",
perlasm_scheme => "win32n",
build_scheme => [ "mk1mf", "VC-W32" ],
},
"VC-CE" => {
cc => "cl",
sys_id => "WINCE",
bn_ops => "BN_LLONG EXPORT_VAR_AS_FN ${x86_gcc_opts}",
bn_ops => "BN_LLONG EXPORT_VAR_AS_FN",
dso_scheme => "win32",
build_scheme => [ "mk1mf", "VC-WCE" ],
},
Expand All @@ -1168,7 +1163,7 @@
thread_cflag => "-D_MT",
sys_id => "MINGW32",
lflags => "-lws2_32 -lgdi32 -lcrypt32",
bn_ops => "BN_LLONG ${x86_gcc_des} ${x86_gcc_opts} EXPORT_VAR_AS_FN",
bn_ops => "BN_LLONG EXPORT_VAR_AS_FN",
perlasm_scheme => "coff",
dso_scheme => "win32",
shared_target => "cygwin-shared",
Expand Down Expand Up @@ -1214,7 +1209,7 @@
cc => "cc",
cflags => "-DTERMIOS -DL_ENDIAN -O -Wall",
sys_id => "UWIN",
bn_ops => "BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}",
bn_ops => "BN_LLONG",
dso_scheme => "win32",
},

Expand All @@ -1226,7 +1221,7 @@
debug_cflags => "-g -O0",
release_cflags => "-O3 -fomit-frame-pointer",
sys_id => "CYGWIN",
bn_ops => "BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}",
bn_ops => "BN_LLONG",
perlasm_scheme => "coff",
dso_scheme => "dlfcn",
shared_target => "cygwin-shared",
Expand Down Expand Up @@ -1274,44 +1269,40 @@
# netware-clib => legacy CLib c-runtime support
"netware-clib" => {
cc => "mwccnlm",
bn_ops => "${x86_gcc_opts}",
build_scheme => [ "mk1mf", "netware" ],
},
"netware-clib-bsdsock" => {
cc => "mwccnlm",
bn_ops => "${x86_gcc_opts}",
build_scheme => [ "mk1mf", "netware" ],
},
"netware-clib-gcc" => {
cc => "i586-netware-gcc",
cflags => "-nostdinc -I/ndk/nwsdk/include/nlm -I/ndk/ws295sdk/include -DL_ENDIAN -DNETWARE_CLIB -DOPENSSL_SYS_NETWARE -O2 -Wall",
bn_ops => "${x86_gcc_opts}",
},
"netware-clib-bsdsock-gcc" => {
cc => "i586-netware-gcc",
cflags => "-nostdinc -I/ndk/nwsdk/include/nlm -DNETWARE_BSDSOCK -DNETDB_USE_INTERNET -DL_ENDIAN -DNETWARE_CLIB -DOPENSSL_SYS_NETWARE -O2 -Wall",
bn_ops => "${x86_gcc_opts}",
},
# netware-libc => LibC/NKS support
"netware-libc" => {
cc => "mwccnlm",
bn_ops => "BN_LLONG ${x86_gcc_opts}",
bn_ops => "BN_LLONG",
build_scheme => [ "mk1mf", "netware" ],
},
"netware-libc-bsdsock" => {
cc => "mwccnlm",
bn_ops => "BN_LLONG ${x86_gcc_opts}",
bn_ops => "BN_LLONG",
build_scheme => [ "mk1mf", "netware" ],
},
"netware-libc-gcc" => {
cc => "i586-netware-gcc",
cflags => "-nostdinc -I/ndk/libc/include -I/ndk/libc/include/winsock -DL_ENDIAN -DNETWARE_LIBC -DOPENSSL_SYS_NETWARE -DTERMIO -O2 -Wall",
bn_ops => "BN_LLONG ${x86_gcc_opts}",
bn_ops => "BN_LLONG",
},
"netware-libc-bsdsock-gcc" => {
cc => "i586-netware-gcc",
cflags => "-nostdinc -I/ndk/libc/include -DNETWARE_BSDSOCK -DL_ENDIAN -DNETWARE_LIBC -DOPENSSL_SYS_NETWARE -DTERMIO -O2 -Wall",
bn_ops => "BN_LLONG ${x86_gcc_opts}",
bn_ops => "BN_LLONG",
},

#### DJGPP
Expand All @@ -1321,7 +1312,7 @@
cflags => "-I/dev/env/WATT_ROOT/inc -DTERMIO -DL_ENDIAN -fomit-frame-pointer -O2 -Wall",
sys_id => "MSDOS",
lflags => "-L/dev/env/WATT_ROOT/lib -lwatt",
bn_ops => "BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}",
bn_ops => "BN_LLONG",
perlasm_scheme => "a.out",
},

Expand Down Expand Up @@ -1431,7 +1422,7 @@
cflags => "-DL_ENDIAN -O3 -fomit-frame-pointer -march=i486 -Wall",
thread_cflag => "-pthread",
lflags => "-ldl",
bn_ops => "BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}",
bn_ops => "BN_LLONG",
dso_scheme => "dlfcn",
shared_target => "linux-shared",
shared_cflag => "-fPIC",
Expand Down
8 changes: 4 additions & 4 deletions Configurations/90-team.conf
Expand Up @@ -39,7 +39,7 @@
cflags => "-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DL_ENDIAN -g -mcpu=pentium -Wall",
thread_cflag => "-D_REENTRANT",
lflags => "-ldl",
bn_ops => "BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}",
bn_ops => "BN_LLONG",
dso_scheme => "dlfcn",
},
"debug-linux-ppro" => {
Expand All @@ -48,7 +48,7 @@
cflags => "-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DL_ENDIAN -g -mcpu=pentiumpro -Wall",
thread_cflag => "-D_REENTRANT",
lflags => "-ldl",
bn_ops => "BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}",
bn_ops => "BN_LLONG",
dso_scheme => "dlfcn",
},
"debug-linux-elf-noefence" => {
Expand All @@ -57,7 +57,7 @@
cflags => "-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DL_ENDIAN -g -march=i486 -Wall",
thread_cflag => "-D_REENTRANT",
lflags => "-ldl",
bn_ops => "BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}",
bn_ops => "BN_LLONG",
dso_scheme => "dlfcn",
shared_target => "linux-shared",
shared_cflag => "-fPIC",
Expand All @@ -68,7 +68,7 @@
cflags => "-DAES_EXPERIMENTAL -DL_ENDIAN -O3 -fomit-frame-pointer -Wall",
thread_cflag => "-D_REENTRANT",
lflags => "-ldl",
bn_ops => "BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}",
bn_ops => "BN_LLONG",
cpuid_obj => "x86cpuid.o",
bn_obj => "bn-586.o co-586.o x86-mont.o",
des_obj => "des-586.o crypt586.o",
Expand Down
2 changes: 1 addition & 1 deletion Configurations/99-personal-rse.conf
Expand Up @@ -11,6 +11,6 @@
cc => "cc",
cflags => "-DL_ENDIAN -pipe -O -g -ggdb3 -Wall",
thread_cflag => "(unknown)",
bn_ops => "BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}",
bn_ops => "BN_LLONG",
},
);
2 changes: 1 addition & 1 deletion Configurations/99-personal-steve.conf
Expand Up @@ -26,7 +26,7 @@
cflags => "$gcc_devteam_warn -pthread -m32 -DL_ENDIAN -DCONF_DEBUG -g",
thread_cflag => "-D_REENTRANT",
lflags => "-rdynamic -ldl",
bn_ops => "BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}",
bn_ops => "BN_LLONG",
dso_scheme => "dlfcn",
shared_target => "linux-shared",
shared_cflag => "-fPIC",
Expand Down
5 changes: 1 addition & 4 deletions Configure
Expand Up @@ -97,12 +97,8 @@ my $warn_make_depend = 0;
# This adds backtrace information to the memory leak info.
my $memleak_devteam_backtrace = "-rdynamic -DCRYPTO_MDEBUG_BACKTRACE";


my $strict_warnings = 0;

my $x86_gcc_des="";
my $x86_gcc_opts="";

# As for $BSDthreads. Idea is to maintain "collective" set of flags,
# which would cover all BSD flavors. -pthread applies to them all,
# but is treated differently. OpenBSD expands is as -D_POSIX_THREAD
Expand Down Expand Up @@ -1669,6 +1665,7 @@ sub run_dofile()
my $in = shift;
my $out = shift;

die "Can't open $in, $!" unless -f $in;
# should we remove $out ?
system("$config{perl} -I. -Mconfigdata util/dofile.pl -o\"Configure\" $in > $out.new");
exit 1 if $? != 0;
Expand Down

0 comments on commit a01dab9

Please sign in to comment.