make/autoconf/flags.m4
branchihse-cflags-rewrite-branch
changeset 56146 d019a80c41c0
parent 56145 718aa4c360c4
parent 48909 54b423e1c4cf
child 56147 fd62484132bc
equal deleted inserted replaced
56145:718aa4c360c4 56146:d019a80c41c0
   173         # compile and link command line. Must also add -I-xbuiltin to enable
   173         # compile and link command line. Must also add -I-xbuiltin to enable
   174         # inlining of system functions and intrinsics.
   174         # inlining of system functions and intrinsics.
   175         $1SYSROOT_CFLAGS="-I-xbuiltin -I[$]$1SYSROOT/usr/include"
   175         $1SYSROOT_CFLAGS="-I-xbuiltin -I[$]$1SYSROOT/usr/include"
   176         $1SYSROOT_LDFLAGS="-L[$]$1SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \
   176         $1SYSROOT_LDFLAGS="-L[$]$1SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \
   177             -L[$]$1SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR"
   177             -L[$]$1SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR"
       
   178         # If the devkit contains the ld linker, make sure we use it.
       
   179         AC_PATH_PROG(SOLARIS_LD, ld, , $DEVKIT_TOOLCHAIN_PATH:$DEVKIT_EXTRA_PATH)
       
   180         # Make sure this ld is runnable.
       
   181         if test -f "$SOLARIS_LD"; then
       
   182           if "$SOLARIS_LD" -V > /dev/null 2> /dev/null; then
       
   183             $1SYSROOT_LDFLAGS="[$]$1SYSROOT_LDFLAGS -Yl,$(dirname $SOLARIS_LD)"
       
   184           else
       
   185             AC_MSG_WARN([Could not run $SOLARIS_LD found in devkit, reverting to system ld])
       
   186           fi
       
   187         fi
   178       fi
   188       fi
   179     elif test "x$TOOLCHAIN_TYPE" = xgcc; then
   189     elif test "x$TOOLCHAIN_TYPE" = xgcc; then
   180       $1SYSROOT_CFLAGS="--sysroot=[$]$1SYSROOT"
   190       $1SYSROOT_CFLAGS="--sysroot=[$]$1SYSROOT"
   181       $1SYSROOT_LDFLAGS="--sysroot=[$]$1SYSROOT"
   191       $1SYSROOT_LDFLAGS="--sysroot=[$]$1SYSROOT"
   182     elif test "x$TOOLCHAIN_TYPE" = xclang; then
   192     elif test "x$TOOLCHAIN_TYPE" = xclang; then