pike.git / src / configure.in

version» Context lines:

pike.git/src/configure.in:7483:    case "$pike_cv_sys_os" in    hp*|HP*) SO=sl;;    *) SO=so;;    esac   fi   AC_MSG_RESULT($SO)   # LDSHARED is the ld *command* used to create shared library   # -- "ld" on SunOS 4.x.x, "ld -G" on SunOS 5.x, "ld -shared" on IRIX 5   AC_MSG_CHECKING(LDSHARED)   if test -z "$LDSHARED" ; then +  ldshared_is_cc=yes    case "$pike_cv_sys_os" in    AIX*)    if test "$GCC" = yes ; then    if test "`uname -r`" -ge 2 -a "`uname -v`" -eq 4 ; then    LDSHARED="ld -G -bexpall"    elif test "`uname -v`" -gt 4 ; then    # AIX 5L+    LDSHARED="ld -G"    else    # AIX 4.1 and earlier don't have/have unreliable
pike.git/src/configure.in:7514:    LDSHARED="ld -G"    else    # AIX 4.1 and earlier don't have/have unreliable    # handling of dlopen et al.    #    # Even AIX 4.2.1 has buggy dlopen -- NEVER attempt    # to dlopen a file that hasn't been linked with -G.    pike_cv_sys_dynamic_loading=no    LDSHARED="ld"    fi +  ldshared_is_cc=no    ;;    Darwin*)    if test "$pike_cv_osx_twolevel_namespace" = yes ; then    # 10.3 or newer take advantage of two-level namespaces to avoid    # symbol collisions for e.g. libjpeg which is referenced from both    # _Image_JPEG and _Image_TIFF. It requires MACOSX_DEPLOYMENT_TARGET    # which is initialized in smartlink to 10.3.    LDSHARED="$REALCC $CFLAGS -bundle -bind_at_load -undefined dynamic_lookup"    else    # Mac OS X prior to 10.3 need -flat_namespace to support dynamic modules
pike.git/src/configure.in:7538:    if test "$GCC" = yes ; then    # egcs defaults to building -n32 objects    LDSHARED="ld -shared -n32"    else    LDSHARED="ld -shared"    fi    # -woff isn't understood by ld on Irix 5.    if test "`uname -r`" -ge 6 ; then    LDSHARED="$LDSHARED -woff 84,85,134"    else :; fi +  ldshared_is_cc=no    ;; -  SunOS*) LDSHARED="ld";; -  Solaris) LDSHARED="/usr/ccs/bin/ld -G";; -  hp*|HP*) LDSHARED="ld -b";; -  OSF*) LDSHARED="ld -expect_unresolved '*' -shared -msym -O3";; -  DYNIX/ptx*) LDSHARED="ld -G";; +  SunOS*) +  LDSHARED="ld" +  ldshared_is_cc=no +  ;; +  Solaris) +  LDSHARED="/usr/ccs/bin/ld -G" +  ldshared_is_cc=no +  ;; +  hp*|HP*) +  LDSHARED="ld -b" +  ldshared_is_cc=no +  ;; +  OSF*) +  LDSHARED="ld -expect_unresolved '*' -shared -msym -O3" +  ldshared_is_cc=no +  ;; +  DYNIX/ptx*) +  LDSHARED="ld -G" +  ldshared_is_cc=no +  ;;    next*) LDSHARED="$REALCC $CFLAGS -nostdlib -r";;    Linux*) LDSHARED="$REALCC -shared";;    GNU/kFreeBSD*) LDSHARED="$REALCC -shared";;    GNU*) LDSHARED="$REALCC -Wl,-Bshareable";;    FreeBSD*) LDSHARED="$REALCC -Wl,-Bshareable";;    NetBSD*) LDSHARED="$REALCC -Wl,-Bshareable";;    OpenBSD*) LDSHARED="$REALCC -Wl,-Bshareable";;    BSD/OS*)    case "`uname -r`" in    [4-9].*) LDSHARED="$REALCC -shared";; -  *) LDSHARED="shlicc -r";; +  *) LDSHARED="shlicc -r" +  ldshared_is_cc=no +  ;;    esac    ;;    SCO_SV*) LDSHARED="$REALCC -G -KPIC -Wl,-Bexport";; -  UNIX_SV*) LDSHARED="ld -G";; +  UNIX_SV*) +  LDSHARED="ld -G" +  ldshared_is_cc=no +  ;;    UnixWare*|OpenUNIX*)    if test "$GCC" = yes ; then    LDSHARED="$REALCC -G -fPIC"    else    LDSHARED="$REALCC -G -KPIC -Wl,-Bexport"    fi    ;;    Windows_NT*|NT*)    if test x$with_dynamic_modules != xno; then    # It's important that we use $(CC) unexpanded here so that any    # -MD/-MDd flags also gets passed to the linker.    LDSHARED='$(CC) -shared'    LDSHARED_BASE_REQS=pike.lib    LDSHARED_MODULE_ARGS="-l`pwd`/pike"    LDSHARED_MODULE_REQS="`pwd`/pike.lib"    LDSHARED_MODULE_ARGS="$LDSHARED_MODULE_ARGS -pdb:\$\$modname.pdb"    fi    ;; -  *) LDSHARED="ld";; +  *) +  LDSHARED="ld" +  ldshared_is_cc=no +  ;;    esac -  +  if test "$GCC:$ldshared_is_cc" = "yes:yes" ; then +  # On some architectures gcc attempts to link the shared object with +  # the standard startup files (crt0.o et al), which may fail due to +  # relocation errors. The flag -nostartfiles exists in gcc since at +  # least version 3.3.2 from 2003, so this should be safe. +  LDSHARED="$LDSHARED -nostartfiles"    fi -  + fi   AC_MSG_RESULT($LDSHARED)      # CCSHARED are the C *flags* used to create objects to go into a shared   # library -- this is only needed for a few systems   AC_MSG_CHECKING(CCSHARED)   AC_CACHE_VAL(pike_cv_sys_ccshared,[    if test -z "$CCSHARED" ; then    if test "$GCC" = yes ; then    case "$pike_cv_sys_os" in    BSD/OS*)