version 1.1.1.1.2.4, 2014/07/30 08:55:18
|
version 1.1.1.3, 2021/03/17 01:01:01
|
Line 10
|
Line 10
|
# Chet Ramey |
# Chet Ramey |
# chet@po.cwru.edu |
# chet@po.cwru.edu |
|
|
# Copyright (C) 1996-2014 Free Software Foundation, Inc. | # Copyright (C) 1996-2019 Free Software Foundation, Inc. |
# |
# |
# This file is part of GNU Bash, the Bourne Again SHell. |
# This file is part of GNU Bash, the Bourne Again SHell. |
# |
# |
Line 65 while [ $# -gt 0 ]; do
|
Line 65 while [ $# -gt 0 ]; do
|
done |
done |
|
|
case "${host_os}-${SHOBJ_CC}-${host_vendor}" in |
case "${host_os}-${SHOBJ_CC}-${host_vendor}" in |
nsk-cc-tandem) | nsk-cc-tandem|nsk-c99-tandem) |
SHOBJ_CFLAGS=-Wglobalized |
SHOBJ_CFLAGS=-Wglobalized |
case `uname -m` in |
case `uname -m` in |
NSR*) |
NSR*) |
Line 123 sunos5*|solaris2*)
|
Line 123 sunos5*|solaris2*)
|
;; |
;; |
|
|
# All versions of Linux (including Gentoo/FreeBSD) or the semi-mythical GNU Hurd. |
# All versions of Linux (including Gentoo/FreeBSD) or the semi-mythical GNU Hurd. |
linux*-*|gnu*-*|k*bsd*-gnu-*|freebsd*-gentoo) | linux*-*|gnu*-*|k*bsd*-gnu-*|freebsd*|dragonfly*) |
SHOBJ_CFLAGS=-fPIC |
SHOBJ_CFLAGS=-fPIC |
SHOBJ_LD='${CC}' |
SHOBJ_LD='${CC}' |
SHOBJ_LDFLAGS='-shared -Wl,-soname,$@' |
SHOBJ_LDFLAGS='-shared -Wl,-soname,$@' |
Line 132 linux*-*|gnu*-*|k*bsd*-gnu-*|freebsd*-gentoo)
|
Line 132 linux*-*|gnu*-*|k*bsd*-gnu-*|freebsd*-gentoo)
|
SHLIB_LIBVERSION='$(SHLIB_LIBSUFF).$(SHLIB_MAJOR)$(SHLIB_MINOR)' |
SHLIB_LIBVERSION='$(SHLIB_LIBSUFF).$(SHLIB_MAJOR)$(SHLIB_MINOR)' |
;; |
;; |
|
|
freebsd2.*) |
|
SHOBJ_CFLAGS=-fpic |
|
SHOBJ_LD=ld |
|
SHOBJ_LDFLAGS='-x -Bshareable' |
|
|
|
SHLIB_XLDFLAGS='-R$(libdir)' |
|
SHLIB_LIBVERSION='$(SHLIB_LIBSUFF).$(SHLIB_MAJOR)$(SHLIB_MINOR)' |
|
;; |
|
|
|
# FreeBSD-3.x ELF |
|
freebsd3.*|freebsdaout*) |
|
SHOBJ_CFLAGS=-fPIC |
|
SHOBJ_LD='${CC}' |
|
|
|
SHOBJ_LDFLAGS='-shared -Wl,-soname,$@' |
|
|
|
SHLIB_XLDFLAGS='-Wl,-rpath,$(libdir)' |
|
SHLIB_LIBVERSION='$(SHLIB_LIBSUFF).$(SHLIB_MAJOR)' |
|
;; |
|
|
|
# FreeBSD-4.x and later have only ELF |
|
freebsd[4-9]*|freebsd1[0-9]*|freebsd*|dragonfly*) |
|
SHOBJ_CFLAGS=-fPIC |
|
SHOBJ_LD='${CC}' |
|
|
|
SHOBJ_LDFLAGS='-shared -Wl,-soname,$@' |
|
SHLIB_XLDFLAGS='-Wl,-rpath,$(libdir)' |
|
|
|
SHLIB_LIBVERSION='$(SHLIB_LIBSUFF).$(SHLIB_MAJOR)' |
|
;; |
|
|
|
# Darwin/MacOS X |
# Darwin/MacOS X |
darwin*) |
darwin*) |
# Common definitions for all darwin/mac os x versions |
# Common definitions for all darwin/mac os x versions |
Line 182 darwin*)
|
Line 151 darwin*)
|
darwin[1-7].*) |
darwin[1-7].*) |
SHOBJ_STATUS=unsupported |
SHOBJ_STATUS=unsupported |
SHOBJ_LDFLAGS='-dynamic' |
SHOBJ_LDFLAGS='-dynamic' |
SHLIB_XLDFLAGS='-arch_only `/usr/bin/arch` -install_name $(libdir)/`echo $@ | sed "s:\\..*::"`.$(SHLIB_MAJOR).$(SHLIB_LIBSUFF) -current_version $(SHLIB_MAJOR)$(SHLIB_MINOR) -compatibility_version $(SHLIB_MAJOR) -v' | SHLIB_XLDFLAGS='-arch_only `/usr/bin/arch` -install_name $(libdir)/`echo $@ | sed "s:\\..*::"`.$(SHLIB_MAJOR).$(SHLIB_LIBSUFF) -current_version $(SHLIB_MAJOR)$(SHLIB_MINOR) -compatibility_version $(SHLIB_MAJOR)$(SHLIB_MINOR) -v' |
;; |
;; |
# Darwin 8 == Mac OS X 10.4; Mac OS X 10.N == Darwin N+4 |
# Darwin 8 == Mac OS X 10.4; Mac OS X 10.N == Darwin N+4 |
*) |
*) |
Line 198 darwin*)
|
Line 167 darwin*)
|
;; |
;; |
esac |
esac |
SHOBJ_LDFLAGS="-dynamiclib -dynamic -undefined dynamic_lookup ${SHOBJ_ARCHFLAGS}" |
SHOBJ_LDFLAGS="-dynamiclib -dynamic -undefined dynamic_lookup ${SHOBJ_ARCHFLAGS}" |
SHLIB_XLDFLAGS="-dynamiclib ${SHOBJ_ARCHFLAGS}"' -install_name $(libdir)/`echo $@ | sed "s:\\..*::"`.$(SHLIB_MAJOR).$(SHLIB_LIBSUFF) -current_version $(SHLIB_MAJOR)$(SHLIB_MINOR) -compatibility_version $(SHLIB_MAJOR) -v' | SHLIB_XLDFLAGS="-dynamiclib ${SHOBJ_ARCHFLAGS}"' -install_name $(libdir)/`echo $@ | sed "s:\\..*::"`.$(SHLIB_MAJOR).$(SHLIB_LIBSUFF) -current_version $(SHLIB_MAJOR)$(SHLIB_MINOR) -compatibility_version $(SHLIB_MAJOR)$(SHLIB_MINOR) -v' |
;; |
;; |
esac |
esac |
|
|
Line 395 hpux11*)
|
Line 364 hpux11*)
|
SHLIB_STATUS=unsupported |
SHLIB_STATUS=unsupported |
|
|
# If you are using the HP ANSI C compiler, you can uncomment and use |
# If you are using the HP ANSI C compiler, you can uncomment and use |
# this code (I have not tested it) | # this code from michael.osipov@siemens.com (I have not tested it) |
# SHOBJ_STATUS=supported | |
# SHLIB_STATUS=supported | |
# | |
# SHOBJ_CFLAGS='+z' |
# SHOBJ_CFLAGS='+z' |
# SHOBJ_LD='ld' | # SHOBJ_LD='$(CC)' |
# SHOBJ_LDFLAGS='-b +s +h $@' | # SHOBJ_LDFLAGS='-b -Wl,+s -Wl,+h,$@' |
# |
# |
# SHLIB_XLDFLAGS='+b $(libdir)' | # SHLIB_XLDFLAGS='-Wl,+b,$(libdir)' |
# SHLIB_LIBSUFF='sl' | # SHLIB_LIBSUFF='so' |
# SHLIB_LIBVERSION='$(SHLIB_LIBSUFF).$(SHLIB_MAJOR)' |
# SHLIB_LIBVERSION='$(SHLIB_LIBSUFF).$(SHLIB_MAJOR)' |
| # SHLIB_LIBS='$(TERMCAP_LIB)' |
;; |
;; |
|
|
sysv4*-*gcc*) |
sysv4*-*gcc*) |