Line 4838... |
Line 4838... |
|
|
if [ -n "${frag}" ]; then
|
if [ -n "${frag}" ]; then
|
frag=${libiberty_topdir}/libiberty/config/$frag
|
frag=${libiberty_topdir}/libiberty/config/$frag
|
fi
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
case "${host}" in
|
|
# PIC is the default on some targets or must not be used.
|
|
*-*-darwin*)
|
|
# PIC is the default on this platform
|
|
# Common symbols not allowed in MH_DYLIB files
|
|
PICFLAG=-fno-common
|
|
;;
|
|
alpha*-dec-osf5*)
|
|
# PIC is the default.
|
|
;;
|
|
hppa*64*-*-hpux*)
|
|
# PIC is the default for 64-bit PA HP-UX.
|
|
;;
|
|
i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
|
|
;;
|
|
i[34567]86-*-interix3*)
|
|
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
|
# Instead, we relocate shared libraries at runtime.
|
|
;;
|
|
i[34567]86-*-nto-qnx*)
|
|
# QNX uses GNU C++, but need to define -shared option too, otherwise
|
|
# it will coredump.
|
|
PICFLAG='-fPIC -shared'
|
|
;;
|
|
i[34567]86-pc-msdosdjgpp*)
|
|
# DJGPP does not support shared libraries at all.
|
|
;;
|
|
ia64*-*-hpux*)
|
|
# On IA64 HP-UX, PIC is the default but the pic flag
|
|
# sets the default TLS model and affects inlining.
|
|
PICFLAG=-fPIC
|
|
;;
|
|
mips-sgi-irix6*)
|
|
# PIC is the default.
|
|
;;
|
|
rs6000-ibm-aix* | powerpc-ibm-aix*)
|
|
# All AIX code is PIC.
|
|
;;
|
|
|
|
# Some targets support both -fPIC and -fpic, but prefer the latter.
|
|
# FIXME: Why?
|
|
i[34567]86-*-* | x86_64-*-*)
|
|
PICFLAG=-fpic
|
|
;;
|
|
m68k-*-*)
|
|
PICFLAG=-fpic
|
|
;;
|
|
s390*-*-*)
|
|
PICFLAG=-fpic
|
|
;;
|
|
# FIXME: Override -fPIC default in libgcc only?
|
|
sh-*-linux* | sh[2346lbe]*-*-linux*)
|
|
PICFLAG=-fpic
|
|
;;
|
|
# FIXME: Simplify to sh*-*-netbsd*?
|
|
sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
|
|
sh64-*-netbsd* | sh64l*-*-netbsd*)
|
|
PICFLAG=-fpic
|
|
;;
|
|
# Default to -fPIC unless specified otherwise.
|
|
*)
|
|
PICFLAG=-fPIC
|
|
;;
|
|
esac
|
|
|
|
# If the user explicitly uses -fpic/-fPIC, keep that.
|
|
case "${CFLAGS}" in
|
|
*-fpic*)
|
|
PICFLAG=-fpic
|
|
;;
|
|
*-fPIC*)
|
|
PICFLAG=-fPIC
|
|
;;
|
|
esac
|
|
|
|
|
# If they didn't specify --enable-shared, don't generate shared libs.
|
# If they didn't specify --enable-shared, don't generate shared libs.
|
case "${enable_shared}" in
|
case "${enable_shared}" in
|
yes) shared=yes ;;
|
yes) shared=yes ;;
|
no) shared=no ;;
|
no) shared=no ;;
|
"") shared=no ;;
|
"") shared=no ;;
|
*) shared=yes ;;
|
*) shared=yes ;;
|
esac
|
esac
|
if [ "${shared}" = "yes" ]; then
|
if [ "${shared}" != "yes" ]; then
|
case "${host}" in
|
PICFLAG=
|
*-*-cygwin*) ;;
|
|
alpha*-*-linux*) PICFLAG=-fPIC ;;
|
|
arm*-*-*) PICFLAG=-fPIC ;;
|
|
hppa*-*-*) PICFLAG=-fPIC ;;
|
|
i370-*-*) PICFLAG=-fPIC ;;
|
|
ia64-*-*) PICFLAG=-fpic ;;
|
|
i[34567]86-*-* | x86_64-*-*)
|
|
PICFLAG=-fpic ;;
|
|
m68k-*-*) PICFLAG=-fpic ;;
|
|
mips*-*-linux*) PICFLAG=-fPIC ;;
|
|
powerpc*-*-aix*) ;;
|
|
powerpc*-*-*) PICFLAG=-fPIC ;;
|
|
sparc*-*-*) case "${CFLAGS}" in
|
|
*-fpic* ) PICFLAG=-fpic ;;
|
|
* ) PICFLAG=-fPIC ;;
|
|
esac ;;
|
|
s390*-*-*) PICFLAG=-fpic ;;
|
|
sh*-*-*) PICFLAG=-fPIC ;;
|
|
esac
|
|
fi
|
fi
|
|
|
|
|
echo "# Warning: this fragment is automatically generated" > temp-frag
|
echo "# Warning: this fragment is automatically generated" > temp-frag
|
|
|
Line 5291... |
Line 5352... |
|
|
# Also in the old function.def file: alloca, vfork, getopt.
|
# Also in the old function.def file: alloca, vfork, getopt.
|
|
|
vars="sys_errlist sys_nerr sys_siglist"
|
vars="sys_errlist sys_nerr sys_siglist"
|
|
|
checkfuncs="__fsetlocking canonicalize_file_name dup3 getrusage getsysinfo \
|
checkfuncs="__fsetlocking canonicalize_file_name dup3 getrlimit getrusage \
|
gettimeofday on_exit psignal pstat_getdynamic pstat_getstatic realpath \
|
getsysinfo gettimeofday on_exit psignal pstat_getdynamic pstat_getstatic \
|
sbrk spawnve spawnvpe strerror strsignal sysconf sysctl sysmp table \
|
realpath setrlimit sbrk spawnve spawnvpe strerror strsignal sysconf sysctl \
|
times wait3 wait4"
|
sysmp table times wait3 wait4"
|
|
|
# These are neither executed nor required, but they help keep
|
# These are neither executed nor required, but they help keep
|
# autoheader happy without adding a bunch of text to acconfig.h.
|
# autoheader happy without adding a bunch of text to acconfig.h.
|
if test "x" = "y"; then
|
if test "x" = "y"; then
|
for ac_func in asprintf atexit \
|
for ac_func in asprintf atexit \
|
basename bcmp bcopy bsearch bzero \
|
basename bcmp bcopy bsearch bzero \
|
calloc canonicalize_file_name clock \
|
calloc canonicalize_file_name clock \
|
dup3 \
|
dup3 \
|
ffs __fsetlocking \
|
ffs __fsetlocking \
|
getcwd getpagesize getrusage getsysinfo gettimeofday \
|
getcwd getpagesize getrlimit getrusage getsysinfo gettimeofday \
|
index insque \
|
index insque \
|
memchr memcmp memcpy memmem memmove memset mkstemps \
|
memchr memcmp memcpy memmem memmove memset mkstemps \
|
on_exit \
|
on_exit \
|
psignal pstat_getdynamic pstat_getstatic putenv \
|
psignal pstat_getdynamic pstat_getstatic putenv \
|
random realpath rename rindex \
|
random realpath rename rindex \
|
sbrk setenv setproctitle sigsetmask snprintf spawnve spawnvpe \
|
sbrk setenv setproctitle setrlimit sigsetmask snprintf spawnve spawnvpe \
|
stpcpy stpncpy strcasecmp strchr strdup \
|
stpcpy stpncpy strcasecmp strchr strdup \
|
strerror strncasecmp strndup strrchr strsignal strstr strtod strtol \
|
strerror strncasecmp strndup strrchr strsignal strstr strtod strtol \
|
strtoul strverscmp sysconf sysctl sysmp \
|
strtoul strverscmp sysconf sysctl sysmp \
|
table times tmpnam \
|
table times tmpnam \
|
vasprintf vfprintf vprintf vsprintf \
|
vasprintf vfprintf vprintf vsprintf \
|