@@ -799,6 +799,7 @@ enable_fast_install
799
799
with_gnu_ld
800
800
enable_libtool_lock
801
801
enable_largefile
802
+ enable_werror
802
803
with_system_libunwind
803
804
enable_host_shared
804
805
'
@@ -1445,6 +1446,7 @@ Optional Features:
1445
1446
optimize for fast installation [default=yes]
1446
1447
--disable-libtool-lock avoid locking (might break parallel builds)
1447
1448
--disable-largefile omit support for large files
1449
+ --disable-werror disable building with -Werror
1448
1450
--enable-host-shared build host code as shared libraries
1449
1451
1450
1452
Optional Packages:
@@ -7777,23 +7779,25 @@ _LT_EOF
7777
7779
fi
7778
7780
{ $as_echo " $as_me :${as_lineno-$LINENO } : result: $lt_cv_ld_force_load " >&5
7779
7781
$as_echo " $lt_cv_ld_force_load " >&6 ; }
7780
- case $host_os in
7781
- rhapsody* | darwin1.[012])
7782
+ # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7783
+ # build without first building modern cctools / linker.
7784
+ case $host_cpu -$host_os in
7785
+ * -rhapsody* | * -darwin1.[012])
7782
7786
_lt_dar_allow_undefined=' ${wl}-undefined ${wl}suppress' ;;
7783
- darwin1.* )
7787
+ * - darwin1.* )
7784
7788
_lt_dar_allow_undefined=' ${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7785
- darwin* ) # darwin 5.x on
7786
- # if running on 10.5 or later, the deployment target defaults
7787
- # to the OS version, if on x86, and 10.4, the deployment
7788
- # target defaults to 10.4. Don't you love it?
7789
- case ${MACOSX_DEPLOYMENT_TARGET-10.0} ,$host in
7790
- 10.0,* 86* -darwin8* |10.0,* -darwin[91]* )
7791
- _lt_dar_allow_undefined=' ${wl}-undefined ${wl}dynamic_lookup' ;;
7789
+ * -darwin* )
7790
+ # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7791
+ # deployment target is forced to an earlier version.
7792
+ case ${MACOSX_DEPLOYMENT_TARGET-UNSET} ,$host in
7793
+ UNSET,* -darwin[89]* |UNSET,* -darwin[12][0123456789]* )
7794
+ ;;
7792
7795
10.[012][,.]* )
7793
- _lt_dar_allow_undefined=' ${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7794
- 10.* )
7795
- _lt_dar_allow_undefined=' ${wl}-undefined ${wl}dynamic_lookup' ;;
7796
- esac
7796
+ _lt_dar_allow_undefined=' ${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7797
+ ;;
7798
+ * )
7799
+ ;;
7800
+ esac
7797
7801
;;
7798
7802
esac
7799
7803
if test " $lt_cv_apple_cc_single_mod " = " yes" ; then
@@ -9562,7 +9566,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9562
9566
if test " $GCC " = yes && test " $with_gnu_ld " = no; then
9563
9567
case $host_cpu in
9564
9568
hppa* 64* )
9565
- archive_cmds=' $CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9569
+ archive_cmds=' $CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9566
9570
;;
9567
9571
ia64* )
9568
9572
archive_cmds=' $CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
@@ -9574,7 +9578,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9574
9578
else
9575
9579
case $host_cpu in
9576
9580
hppa* 64* )
9577
- archive_cmds=' $CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9581
+ archive_cmds=' $CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9578
9582
;;
9579
9583
ia64* )
9580
9584
archive_cmds=' $CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
@@ -10458,16 +10462,6 @@ freebsd* | dragonfly*)
10458
10462
esac
10459
10463
;;
10460
10464
10461
- gnu* )
10462
- version_type=linux
10463
- need_lib_prefix=no
10464
- need_version=no
10465
- library_names_spec=' ${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10466
- soname_spec=' ${libname}${release}${shared_ext}$major'
10467
- shlibpath_var=LD_LIBRARY_PATH
10468
- hardcode_into_libs=yes
10469
- ;;
10470
-
10471
10465
haiku* )
10472
10466
version_type=linux
10473
10467
need_lib_prefix=no
@@ -10589,7 +10583,7 @@ linux*oldld* | linux*aout* | linux*coff*)
10589
10583
# project, but have not yet been accepted: they are GCC-local changes
10590
10584
# for the time being. (See
10591
10585
# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10592
- linux* | k* bsd* -gnu | kopensolaris* -gnu | uclinuxfdpiceabi)
10586
+ linux* | k* bsd* -gnu | kopensolaris* -gnu | gnu * | uclinuxfdpiceabi)
10593
10587
version_type=linux
10594
10588
need_lib_prefix=no
10595
10589
need_version=no
@@ -11278,7 +11272,7 @@ else
11278
11272
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11279
11273
lt_status=$lt_dlunknown
11280
11274
cat > conftest.$ac_ext << _LT_EOF
11281
- #line 11281 "configure"
11275
+ #line 11275 "configure"
11282
11276
#include "confdefs.h"
11283
11277
11284
11278
#if HAVE_DLFCN_H
@@ -11384,7 +11378,7 @@ else
11384
11378
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11385
11379
lt_status=$lt_dlunknown
11386
11380
cat > conftest.$ac_ext << _LT_EOF
11387
- #line 11387 "configure"
11381
+ #line 11381 "configure"
11388
11382
#include "confdefs.h"
11389
11383
11390
11384
#if HAVE_DLFCN_H
@@ -11979,7 +11973,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
11979
11973
11980
11974
11981
11975
11982
- if test -n " ${with_target_subdir} " ; then
11976
+ # Check whether --enable-werror was given.
11977
+ if test " ${enable_werror+set} " = set ; then :
11978
+ enableval=$enable_werror ;
11979
+ fi
11980
+
11981
+ if test " x$enable_werror " ! = " xno" && test -n " ${with_target_subdir} " ; then :
11983
11982
WARN_FLAGS=" $WARN_FLAGS -Werror"
11984
11983
fi
11985
11984
0 commit comments