common/autoconf/flags.m4
changeset 35450 0124e2c9ef64
parent 35444 4d323e794486
child 35451 d0b71f2375d0
equal deleted inserted replaced
35449:d3644de010dc 35450:0124e2c9ef64
    78   if test "x[$]$1SYSROOT" != "x"; then
    78   if test "x[$]$1SYSROOT" != "x"; then
    79     if test "x$TOOLCHAIN_TYPE" = xsolstudio; then
    79     if test "x$TOOLCHAIN_TYPE" = xsolstudio; then
    80       if test "x$OPENJDK_TARGET_OS" = xsolaris; then
    80       if test "x$OPENJDK_TARGET_OS" = xsolaris; then
    81         # Solaris Studio does not have a concept of sysroot. Instead we must
    81         # Solaris Studio does not have a concept of sysroot. Instead we must
    82         # make sure the default include and lib dirs are appended to each
    82         # make sure the default include and lib dirs are appended to each
    83         # compile and link command line.
    83         # compile and link command line. Must also add -I-xbuiltin to enable
    84         $1SYSROOT_CFLAGS="-I[$]$1SYSROOT/usr/include"
    84         # inlining of system functions and intrinsics.
       
    85         $1SYSROOT_CFLAGS="-I-xbuiltin -I[$]$1SYSROOT/usr/include"
    85         $1SYSROOT_LDFLAGS="-L[$]$1SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \
    86         $1SYSROOT_LDFLAGS="-L[$]$1SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \
    86             -L[$]$1SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR \
    87             -L[$]$1SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR \
    87             -L[$]$1SYSROOT/usr/ccs/lib$OPENJDK_TARGET_CPU_ISADIR"
    88             -L[$]$1SYSROOT/usr/ccs/lib$OPENJDK_TARGET_CPU_ISADIR"
    88       fi
    89       fi
    89     elif test "x$TOOLCHAIN_TYPE" = xgcc; then
    90     elif test "x$TOOLCHAIN_TYPE" = xgcc; then