|
version 1.1, 2012/02/21 22:57:49
|
version 1.1.1.3, 2021/03/17 13:38:46
|
|
Line 2
|
Line 2
|
| # Output a system dependent set of variables, describing how to set the |
# Output a system dependent set of variables, describing how to set the |
| # run time search path of shared libraries in an executable. |
# run time search path of shared libraries in an executable. |
| # |
# |
| # Copyright 1996-2008 Free Software Foundation, Inc. | # Copyright 1996-2019 Free Software Foundation, Inc. |
| # Taken from GNU libtool, 2001 |
# Taken from GNU libtool, 2001 |
| # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| # |
# |
|
Line 25
|
Line 25
|
| # known workaround is to choose shorter directory names for the build |
# known workaround is to choose shorter directory names for the build |
| # directory and/or the installation directory. |
# directory and/or the installation directory. |
| |
|
| # All known linkers require a `.a' archive for static linking (except MSVC, | # All known linkers require a '.a' archive for static linking (except MSVC, |
| # which needs '.lib'). |
# which needs '.lib'). |
| libext=a |
libext=a |
| shrext=.so |
shrext=.so |
|
Line 57 else
|
Line 57 else
|
| aix*) |
aix*) |
| wl='-Wl,' |
wl='-Wl,' |
| ;; |
;; |
| darwin*) |
|
| case $cc_basename in |
|
| xlc*) |
|
| wl='-Wl,' |
|
| ;; |
|
| esac |
|
| ;; |
|
| mingw* | cygwin* | pw32* | os2* | cegcc*) |
mingw* | cygwin* | pw32* | os2* | cegcc*) |
| ;; |
;; |
| hpux9* | hpux10* | hpux11*) |
hpux9* | hpux10* | hpux11*) |
|
Line 72 else
|
Line 65 else
|
| irix5* | irix6* | nonstopux*) |
irix5* | irix6* | nonstopux*) |
| wl='-Wl,' |
wl='-Wl,' |
| ;; |
;; |
| newsos6) | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| ;; | |
| linux* | k*bsd*-gnu) | |
| case $cc_basename in |
case $cc_basename in |
| ecc*) |
ecc*) |
| wl='-Wl,' |
wl='-Wl,' |
|
Line 85 else
|
Line 76 else
|
| lf95*) |
lf95*) |
| wl='-Wl,' |
wl='-Wl,' |
| ;; |
;; |
| pgcc | pgf77 | pgf90) | nagfor*) |
| | wl='-Wl,-Wl,,' |
| | ;; |
| | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
| wl='-Wl,' |
wl='-Wl,' |
| ;; |
;; |
| ccc*) |
ccc*) |
| wl='-Wl,' |
wl='-Wl,' |
| ;; |
;; |
| |
xl* | bgxl* | bgf* | mpixl*) |
| |
wl='-Wl,' |
| |
;; |
| como) |
como) |
| wl='-lopt=' |
wl='-lopt=' |
| ;; |
;; |
| *) |
*) |
| case `$CC -V 2>&1 | sed 5q` in |
case `$CC -V 2>&1 | sed 5q` in |
| |
*Sun\ F* | *Sun*Fortran*) |
| |
wl= |
| |
;; |
| *Sun\ C*) |
*Sun\ C*) |
| wl='-Wl,' |
wl='-Wl,' |
| ;; |
;; |
|
Line 103 else
|
Line 103 else
|
| ;; |
;; |
| esac |
esac |
| ;; |
;; |
| |
newsos6) |
| |
;; |
| |
*nto* | *qnx*) |
| |
;; |
| osf3* | osf4* | osf5*) |
osf3* | osf4* | osf5*) |
| wl='-Wl,' |
wl='-Wl,' |
| ;; |
;; |
| rdos*) |
rdos*) |
| ;; |
;; |
| solaris*) |
solaris*) |
| wl='-Wl,' | case $cc_basename in |
| | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
| | wl='-Qoption ld ' |
| | ;; |
| | *) |
| | wl='-Wl,' |
| | ;; |
| | esac |
| ;; |
;; |
| sunos4*) |
sunos4*) |
| wl='-Qoption ld ' |
wl='-Qoption ld ' |
|
Line 171 if test "$with_gnu_ld" = yes; then
|
Line 182 if test "$with_gnu_ld" = yes; then
|
| fi |
fi |
| ;; |
;; |
| amigaos*) |
amigaos*) |
| hardcode_libdir_flag_spec='-L$libdir' | case "$host_cpu" in |
| hardcode_minus_L=yes | powerpc) |
| # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | ;; |
| # that the semantics of dynamic libraries on AmigaOS, at least up | m68k) |
| # to version 4, is to share data among multiple programs linked | hardcode_libdir_flag_spec='-L$libdir' |
| # with the same dynamic library. Since this doesn't match the | hardcode_minus_L=yes |
| # behavior of shared libraries on other platforms, we cannot use | ;; |
| # them. | esac |
| ld_shlibs=no | |
| ;; |
;; |
| beos*) |
beos*) |
| if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
Line 198 if test "$with_gnu_ld" = yes; then
|
Line 208 if test "$with_gnu_ld" = yes; then
|
| ld_shlibs=no |
ld_shlibs=no |
| fi |
fi |
| ;; |
;; |
| |
haiku*) |
| |
;; |
| interix[3-9]*) |
interix[3-9]*) |
| hardcode_direct=no |
hardcode_direct=no |
| hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| ;; |
;; |
| gnu* | linux* | k*bsd*-gnu) | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
| if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| : |
: |
| else |
else |
|
Line 325 else
|
Line 337 else
|
| fi |
fi |
| ;; |
;; |
| amigaos*) |
amigaos*) |
| hardcode_libdir_flag_spec='-L$libdir' | case "$host_cpu" in |
| hardcode_minus_L=yes | powerpc) |
| # see comment about different semantics on the GNU ld section | ;; |
| ld_shlibs=no | m68k) |
| | hardcode_libdir_flag_spec='-L$libdir' |
| | hardcode_minus_L=yes |
| | ;; |
| | esac |
| ;; |
;; |
| bsdi[45]*) |
bsdi[45]*) |
| ;; |
;; |
|
Line 342 else
|
Line 358 else
|
| ;; |
;; |
| darwin* | rhapsody*) |
darwin* | rhapsody*) |
| hardcode_direct=no |
hardcode_direct=no |
| if test "$GCC" = yes ; then | if { case $cc_basename in ifort*) true;; *) test "$GCC" = yes;; esac; }; then |
| : |
: |
| else |
else |
| case $cc_basename in | ld_shlibs=no |
| xlc*) | |
| ;; | |
| *) | |
| ld_shlibs=no | |
| ;; | |
| esac | |
| fi |
fi |
| ;; |
;; |
| dgux*) |
dgux*) |
| hardcode_libdir_flag_spec='-L$libdir' |
hardcode_libdir_flag_spec='-L$libdir' |
| ;; |
;; |
| freebsd1*) | freebsd2.[01]*) |
| ld_shlibs=no | |
| ;; | |
| freebsd2.2*) | |
| hardcode_libdir_flag_spec='-R$libdir' | |
| hardcode_direct=yes |
hardcode_direct=yes |
| ;; |
|
| freebsd2*) |
|
| hardcode_direct=yes |
|
| hardcode_minus_L=yes |
hardcode_minus_L=yes |
| ;; |
;; |
| freebsd* | dragonfly*) |
freebsd* | dragonfly*) |
|
Line 420 else
|
Line 423 else
|
| hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| hardcode_libdir_separator=: |
hardcode_libdir_separator=: |
| ;; |
;; |
| |
*nto* | *qnx*) |
| |
;; |
| openbsd*) |
openbsd*) |
| if test -f /usr/libexec/ld.so; then |
if test -f /usr/libexec/ld.so; then |
| hardcode_direct=yes |
hardcode_direct=yes |
|
Line 515 case "$host_os" in
|
Line 520 case "$host_os" in
|
| library_names_spec='$libname$shrext' |
library_names_spec='$libname$shrext' |
| ;; |
;; |
| amigaos*) |
amigaos*) |
| library_names_spec='$libname.a' | case "$host_cpu" in |
| | powerpc*) |
| | library_names_spec='$libname$shrext' ;; |
| | m68k) |
| | library_names_spec='$libname.a' ;; |
| | esac |
| ;; |
;; |
| beos*) |
beos*) |
| library_names_spec='$libname$shrext' |
library_names_spec='$libname$shrext' |
|
Line 534 case "$host_os" in
|
Line 544 case "$host_os" in
|
| dgux*) |
dgux*) |
| library_names_spec='$libname$shrext' |
library_names_spec='$libname$shrext' |
| ;; |
;; |
| freebsd1*) | freebsd[23].*) |
| | library_names_spec='$libname$shrext$versuffix' |
| ;; |
;; |
| freebsd* | dragonfly*) |
freebsd* | dragonfly*) |
| case "$host_os" in | library_names_spec='$libname$shrext' |
| freebsd[123]*) | |
| library_names_spec='$libname$shrext$versuffix' ;; | |
| *) | |
| library_names_spec='$libname$shrext' ;; | |
| esac | |
| ;; |
;; |
| gnu*) |
gnu*) |
| library_names_spec='$libname$shrext' |
library_names_spec='$libname$shrext' |
| ;; |
;; |
| |
haiku*) |
| |
library_names_spec='$libname$shrext' |
| |
;; |
| hpux9* | hpux10* | hpux11*) |
hpux9* | hpux10* | hpux11*) |
| case $host_cpu in |
case $host_cpu in |
| ia64*) |
ia64*) |
|
Line 582 case "$host_os" in
|
Line 591 case "$host_os" in
|
| ;; |
;; |
| linux*oldld* | linux*aout* | linux*coff*) |
linux*oldld* | linux*aout* | linux*coff*) |
| ;; |
;; |
| linux* | k*bsd*-gnu) | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| library_names_spec='$libname$shrext' |
library_names_spec='$libname$shrext' |
| ;; |
;; |
| knetbsd*-gnu) |
knetbsd*-gnu) |
|
Line 594 case "$host_os" in
|
Line 603 case "$host_os" in
|
| newsos6) |
newsos6) |
| library_names_spec='$libname$shrext' |
library_names_spec='$libname$shrext' |
| ;; |
;; |
| nto-qnx*) | *nto* | *qnx*) |
| library_names_spec='$libname$shrext' |
library_names_spec='$libname$shrext' |
| ;; |
;; |
| openbsd*) |
openbsd*) |
|
Line 623 case "$host_os" in
|
Line 632 case "$host_os" in
|
| library_names_spec='$libname$shrext' |
library_names_spec='$libname$shrext' |
| ;; |
;; |
| sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| |
library_names_spec='$libname$shrext' |
| |
;; |
| |
tpf*) |
| library_names_spec='$libname$shrext' |
library_names_spec='$libname$shrext' |
| ;; |
;; |
| uts4*) |
uts4*) |