perl
view release on metacpan or search on metacpan
hints/svr5.sh view on Meta::CPAN
# lddlflags : must tell the linker to output a shared library
# use shared perl lib if the user doesn't choose otherwise
if test "$uw_isuw" != "OpenUNIX"; then
if test "x$useshrplib" = "x"; then
useshrplib='true'
fi
fi
case "$cc" in
*gcc*)
ccdlflags='-Xlinker -Bexport '
cccdlflags='-fpic'
lddlflags='-G '
;;
*)
ccdlflags='-Wl,-Bexport'
cccdlflags='-Kpic'
lddlflags='-G -Wl,-Bexport'
;;
esac
############################################################################
# Thread support
# use Configure -Dusethreads to enable
# This script UU/usethreads.cbu will get 'called-back' by Configure
# after it has prompted the user for whether to use threads.
cat > UU/usethreads.cbu <<'EOCBU'
case "$usethreads" in
$define|true|[yY]*)
ccflags="$ccflags"
shift
libswanted="$libswanted $*"
case "$cc" in
*gcc*)
ccflags="-D_REENTRANT $ccflags -fpic -pthread"
cccdlflags='-fpic'
lddlflags='-pthread -G '
;;
*)
ccflags="-D_REENTRANT $ccflags -KPIC -Kthread"
ccdlflags='-Kthread -Wl,-Bexport'
cccdlflags='-KPIC -Kthread'
lddlflags='-G -Kthread -Wl,-Bexport '
ldflags='-Kthread'
;;
esac
esac
EOCBU
d_suidsafe='define' # "./Configure -d" can't figure this out easily
################## final caveat msgs to builder ###############
cat <<'EOM' >&4
If you wish to use dynamic linking, you must use
LD_LIBRARY_PATH=`pwd`; export LD_LIBRARY_PATH
or
setenv LD_LIBRARY_PATH `pwd`
before running make.
If you are using shared libraries from /usr/local/lib
for libdbm or libgdbm you may need to set
LD_RUN_PATH=/usr/local/lib; export LD_RUN_PATH
in order for Configure to compile the simple test program
EOM
( run in 0.658 second using v1.01-cache-2.11-cpan-39bf76dae61 )