@@ -1338,7 +1338,14 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1338
1338
LD="${LD-ld} -m elf_i386_fbsd"
1339
1339
;;
1340
1340
x86_64-*linux*)
1341
- LD="${LD-ld} -m elf_i386"
1341
+ case `/usr/bin/file conftest.o` in
1342
+ *x86-64*)
1343
+ LD="${LD-ld} -m elf32_x86_64"
1344
+ ;;
1345
+ *)
1346
+ LD="${LD-ld} -m elf_i386"
1347
+ ;;
1348
+ esac
1342
1349
;;
1343
1350
ppc64-*linux*|powerpc64-*linux*)
1344
1351
LD="${LD-ld} -m elf32ppclinux"
@@ -1702,7 +1709,8 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1702
1709
;;
1703
1710
*)
1704
1711
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1705
- if test -n "$lt_cv_sys_max_cmd_len"; then
1712
+ if test -n "$lt_cv_sys_max_cmd_len" && \
1713
+ test undefined != "$lt_cv_sys_max_cmd_len"; then
1706
1714
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1707
1715
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1708
1716
else
@@ -2526,17 +2534,6 @@ freebsd* | dragonfly*)
2526
2534
esac
2527
2535
;;
2528
2536
2529
- gnu*)
2530
- version_type=linux # correct to gnu/linux during the next big refactor
2531
- need_lib_prefix=no
2532
- need_version=no
2533
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2534
- soname_spec='${libname}${release}${shared_ext}$major'
2535
- shlibpath_var=LD_LIBRARY_PATH
2536
- shlibpath_overrides_runpath=no
2537
- hardcode_into_libs=yes
2538
- ;;
2539
-
2540
2537
haiku*)
2541
2538
version_type=linux # correct to gnu/linux during the next big refactor
2542
2539
need_lib_prefix=no
@@ -2653,7 +2650,7 @@ linux*oldld* | linux*aout* | linux*coff*)
2653
2650
;;
2654
2651
2655
2652
# This must be glibc/ELF.
2656
- linux* | k*bsd*-gnu | kopensolaris*-gnu)
2653
+ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* )
2657
2654
version_type=linux # correct to gnu/linux during the next big refactor
2658
2655
need_lib_prefix=no
2659
2656
need_version=no
@@ -3269,10 +3266,6 @@ freebsd* | dragonfly*)
3269
3266
fi
3270
3267
;;
3271
3268
3272
- gnu*)
3273
- lt_cv_deplibs_check_method=pass_all
3274
- ;;
3275
-
3276
3269
haiku*)
3277
3270
lt_cv_deplibs_check_method=pass_all
3278
3271
;;
@@ -3311,7 +3304,7 @@ irix5* | irix6* | nonstopux*)
3311
3304
;;
3312
3305
3313
3306
# This must be glibc/ELF.
3314
- linux* | k*bsd*-gnu | kopensolaris*-gnu)
3307
+ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* )
3315
3308
lt_cv_deplibs_check_method=pass_all
3316
3309
;;
3317
3310
@@ -4063,7 +4056,7 @@ m4_if([$1], [CXX], [
4063
4056
;;
4064
4057
esac
4065
4058
;;
4066
- linux* | k*bsd*-gnu | kopensolaris*-gnu)
4059
+ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* )
4067
4060
case $cc_basename in
4068
4061
KCC*)
4069
4062
# KAI C++ Compiler
@@ -4362,7 +4355,7 @@ m4_if([$1], [CXX], [
4362
4355
_LT_TAGVAR(lt_prog_compiler_static, $1 )='-non_shared'
4363
4356
;;
4364
4357
4365
- linux* | k*bsd*-gnu | kopensolaris*-gnu)
4358
+ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* )
4366
4359
case $cc_basename in
4367
4360
# old Intel for x86_64 which still supported -KPIC.
4368
4361
ecc*)
@@ -6251,9 +6244,6 @@ if test "$_lt_caught_CXX_error" != yes; then
6251
6244
_LT_TAGVAR(ld_shlibs, $1 )=yes
6252
6245
;;
6253
6246
6254
- gnu*)
6255
- ;;
6256
-
6257
6247
haiku*)
6258
6248
_LT_TAGVAR(archive_cmds, $1 )='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6259
6249
_LT_TAGVAR(link_all_deplibs, $1 )=yes
@@ -6415,7 +6405,7 @@ if test "$_lt_caught_CXX_error" != yes; then
6415
6405
_LT_TAGVAR(inherit_rpath, $1 )=yes
6416
6406
;;
6417
6407
6418
- linux* | k*bsd*-gnu | kopensolaris*-gnu)
6408
+ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* )
6419
6409
case $cc_basename in
6420
6410
KCC*)
6421
6411
# Kuck and Associates, Inc. (KAI) C++ Compiler
0 commit comments