|
@@ -123,7 +123,7 @@ target=
|
|
optimize=auto
|
|
optimize=auto
|
|
debug=no
|
|
debug=no
|
|
warnings=no
|
|
warnings=no
|
|
-shared=yes
|
|
|
|
|
|
+shared=auto
|
|
static=yes
|
|
static=yes
|
|
wrapper=auto
|
|
wrapper=auto
|
|
|
|
|
|
@@ -412,12 +412,15 @@ fi
|
|
tryflag CFLAGS_AUTO -fno-stack-protector
|
|
tryflag CFLAGS_AUTO -fno-stack-protector
|
|
tryldflag LDFLAGS_AUTO -Wl,--hash-style=both
|
|
tryldflag LDFLAGS_AUTO -Wl,--hash-style=both
|
|
|
|
|
|
|
|
+test "$shared" = "no" || {
|
|
# Disable dynamic linking if ld is broken and can't do -Bsymbolic-functions
|
|
# Disable dynamic linking if ld is broken and can't do -Bsymbolic-functions
|
|
LDFLAGS_DUMMY=
|
|
LDFLAGS_DUMMY=
|
|
tryldflag LDFLAGS_DUMMY -Wl,-Bsymbolic-functions || {
|
|
tryldflag LDFLAGS_DUMMY -Wl,-Bsymbolic-functions || {
|
|
|
|
+test "$shared" = "yes" && fail "$0: error: linker cannot build shared library"
|
|
printf "warning: disabling dynamic linking support\n"
|
|
printf "warning: disabling dynamic linking support\n"
|
|
shared=no
|
|
shared=no
|
|
}
|
|
}
|
|
|
|
+}
|
|
|
|
|
|
# Find compiler runtime library
|
|
# Find compiler runtime library
|
|
test -z "$LIBCC" && tryldflag LIBCC -lgcc && tryldflag LIBCC -lgcc_eh
|
|
test -z "$LIBCC" && tryldflag LIBCC -lgcc && tryldflag LIBCC -lgcc_eh
|