< prev index next >

make/autoconf/flags-ldflags.m4

Print this page




  64 [
  65   # Setup basic LDFLAGS
  66   if test "x$TOOLCHAIN_TYPE" = xgcc; then
  67     # If this is a --hash-style=gnu system, use --hash-style=both, why?
  68     # We have previously set HAS_GNU_HASH if this is the case
  69     if test -n "$HAS_GNU_HASH"; then
  70       BASIC_LDFLAGS="-Wl,--hash-style=both"
  71       LIBJSIG_HASHSTYLE_LDFLAGS="-Wl,--hash-style=both"
  72     fi
  73 
  74     # Add -z defs, to forbid undefined symbols in object files.
  75     BASIC_LDFLAGS="$BASIC_LDFLAGS -Wl,-z,defs"
  76 
  77     BASIC_LDFLAGS_JVM_ONLY="-Wl,-z,noexecstack -Wl,-O1 -Wl,-z,relro"
  78 
  79     BASIC_LDFLAGS_JDK_LIB_ONLY="-Wl,-z,noexecstack"
  80     LIBJSIG_NOEXECSTACK_LDFLAGS="-Wl,-z,noexecstack"
  81 
  82   elif test "x$TOOLCHAIN_TYPE" = xclang; then
  83     BASIC_LDFLAGS_JVM_ONLY="-mno-omit-leaf-frame-pointer -mstack-alignment=16 \
  84         -stdlib=libstdc++ -fPIC"
  85 
  86   elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then
  87     BASIC_LDFLAGS="-Wl,-z,defs"
  88     BASIC_LDFLAGS_ONLYCXX="-norunpath"
  89     BASIC_LDFLAGS_ONLYCXX_JDK_ONLY="-xnolib"
  90 
  91     BASIC_LDFLAGS_JDK_ONLY="-ztext"
  92     BASIC_LDFLAGS_JVM_ONLY="-library=%none -mt -z noversion"
  93 
  94   elif test "x$TOOLCHAIN_TYPE" = xxlc; then
  95     BASIC_LDFLAGS="-b64 -brtl -bnolibpath -bexpall -bernotok -btextpsize:64K \
  96         -bdatapsize:64K -bstackpsize:64K"
  97     BASIC_LDFLAGS_JVM_ONLY="-Wl,-lC_r"
  98 
  99   elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
 100     BASIC_LDFLAGS="-nologo -opt:ref"
 101     BASIC_LDFLAGS_JDK_ONLY="-incremental:no"
 102     BASIC_LDFLAGS_JVM_ONLY="-opt:icf,8 -subsystem:windows"
 103   fi
 104 




  64 [
  65   # Setup basic LDFLAGS
  66   if test "x$TOOLCHAIN_TYPE" = xgcc; then
  67     # If this is a --hash-style=gnu system, use --hash-style=both, why?
  68     # We have previously set HAS_GNU_HASH if this is the case
  69     if test -n "$HAS_GNU_HASH"; then
  70       BASIC_LDFLAGS="-Wl,--hash-style=both"
  71       LIBJSIG_HASHSTYLE_LDFLAGS="-Wl,--hash-style=both"
  72     fi
  73 
  74     # Add -z defs, to forbid undefined symbols in object files.
  75     BASIC_LDFLAGS="$BASIC_LDFLAGS -Wl,-z,defs"
  76 
  77     BASIC_LDFLAGS_JVM_ONLY="-Wl,-z,noexecstack -Wl,-O1 -Wl,-z,relro"
  78 
  79     BASIC_LDFLAGS_JDK_LIB_ONLY="-Wl,-z,noexecstack"
  80     LIBJSIG_NOEXECSTACK_LDFLAGS="-Wl,-z,noexecstack"
  81 
  82   elif test "x$TOOLCHAIN_TYPE" = xclang; then
  83     BASIC_LDFLAGS_JVM_ONLY="-mno-omit-leaf-frame-pointer -mstack-alignment=16 \
  84         -stdlib=libc++ -fPIC"
  85 
  86   elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then
  87     BASIC_LDFLAGS="-Wl,-z,defs"
  88     BASIC_LDFLAGS_ONLYCXX="-norunpath"
  89     BASIC_LDFLAGS_ONLYCXX_JDK_ONLY="-xnolib"
  90 
  91     BASIC_LDFLAGS_JDK_ONLY="-ztext"
  92     BASIC_LDFLAGS_JVM_ONLY="-library=%none -mt -z noversion"
  93 
  94   elif test "x$TOOLCHAIN_TYPE" = xxlc; then
  95     BASIC_LDFLAGS="-b64 -brtl -bnolibpath -bexpall -bernotok -btextpsize:64K \
  96         -bdatapsize:64K -bstackpsize:64K"
  97     BASIC_LDFLAGS_JVM_ONLY="-Wl,-lC_r"
  98 
  99   elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
 100     BASIC_LDFLAGS="-nologo -opt:ref"
 101     BASIC_LDFLAGS_JDK_ONLY="-incremental:no"
 102     BASIC_LDFLAGS_JVM_ONLY="-opt:icf,8 -subsystem:windows"
 103   fi
 104 


< prev index next >