< prev index next >

make/autoconf/flags.m4

Print this page
rev 49480 : 8199138: Add RISC-V support to Zero
Reviewed-by: aph, erikj, ehelin, ihse


 220     # set this here so it doesn't have to be peppered throughout the forest
 221     $1SYSROOT_CFLAGS="[$]$1SYSROOT_CFLAGS -F [$]$1SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks"
 222     $1SYSROOT_LDFLAGS="[$]$1SYSROOT_LDFLAGS -F [$]$1SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks"
 223   fi
 224 
 225   AC_SUBST($1SYSROOT_CFLAGS)
 226   AC_SUBST($1SYSROOT_LDFLAGS)
 227 ])
 228 
 229 AC_DEFUN_ONCE([FLAGS_PRE_TOOLCHAIN],
 230 [
 231   # We should always include user supplied flags
 232   FLAGS_SETUP_USER_SUPPLIED_FLAGS
 233   # The sysroot flags are needed for configure to be able to run the compilers
 234   FLAGS_SETUP_SYSROOT_FLAGS
 235 
 236   if test "x$TOOLCHAIN_TYPE" = xxlc; then
 237     MACHINE_FLAG="-q${OPENJDK_TARGET_CPU_BITS}"
 238   elif test "x$TOOLCHAIN_TYPE" != xmicrosoft; then
 239     if test "x$OPENJDK_TARGET_CPU" != xaarch64 &&
 240         test "x$OPENJDK_TARGET_CPU" != xarm; then

 241       MACHINE_FLAG="-m${OPENJDK_TARGET_CPU_BITS}"
 242     fi
 243   fi
 244 
 245   # FIXME: global flags are not used yet...
 246   # The "global" flags will *always* be set. Without them, it is not possible to
 247   # get a working compilation.
 248   GLOBAL_CFLAGS="$MACHINE_FLAG $SYSROOT_CFLAGS $USER_CFLAGS"
 249   GLOBAL_CXXFLAGS="$MACHINE_FLAG $SYSROOT_CFLAGS $USER_CXXFLAGS"
 250   GLOBAL_LDFLAGS="$MACHINE_FLAG $SYSROOT_LDFLAGS $USER_LDFLAGS"
 251   # FIXME: Don't really know how to do with this, but this was the old behavior
 252   GLOBAL_CPPFLAGS="$SYSROOT_CFLAGS"
 253   AC_SUBST(GLOBAL_CFLAGS)
 254   AC_SUBST(GLOBAL_CXXFLAGS)
 255   AC_SUBST(GLOBAL_LDFLAGS)
 256   AC_SUBST(GLOBAL_CPPFLAGS)
 257 
 258   # FIXME: For compatilibity, export this as EXTRA_CFLAGS for now.
 259   EXTRA_CFLAGS="$MACHINE_FLAG $USER_CFLAGS"
 260   EXTRA_CXXFLAGS="$MACHINE_FLAG $USER_CXXFLAGS"




 220     # set this here so it doesn't have to be peppered throughout the forest
 221     $1SYSROOT_CFLAGS="[$]$1SYSROOT_CFLAGS -F [$]$1SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks"
 222     $1SYSROOT_LDFLAGS="[$]$1SYSROOT_LDFLAGS -F [$]$1SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks"
 223   fi
 224 
 225   AC_SUBST($1SYSROOT_CFLAGS)
 226   AC_SUBST($1SYSROOT_LDFLAGS)
 227 ])
 228 
 229 AC_DEFUN_ONCE([FLAGS_PRE_TOOLCHAIN],
 230 [
 231   # We should always include user supplied flags
 232   FLAGS_SETUP_USER_SUPPLIED_FLAGS
 233   # The sysroot flags are needed for configure to be able to run the compilers
 234   FLAGS_SETUP_SYSROOT_FLAGS
 235 
 236   if test "x$TOOLCHAIN_TYPE" = xxlc; then
 237     MACHINE_FLAG="-q${OPENJDK_TARGET_CPU_BITS}"
 238   elif test "x$TOOLCHAIN_TYPE" != xmicrosoft; then
 239     if test "x$OPENJDK_TARGET_CPU" != xaarch64 &&
 240         test "x$OPENJDK_TARGET_CPU" != xarm &&
 241         test "x$OPENJDK_TARGET_CPU" != xriscv64; then
 242       MACHINE_FLAG="-m${OPENJDK_TARGET_CPU_BITS}"
 243     fi
 244   fi
 245 
 246   # FIXME: global flags are not used yet...
 247   # The "global" flags will *always* be set. Without them, it is not possible to
 248   # get a working compilation.
 249   GLOBAL_CFLAGS="$MACHINE_FLAG $SYSROOT_CFLAGS $USER_CFLAGS"
 250   GLOBAL_CXXFLAGS="$MACHINE_FLAG $SYSROOT_CFLAGS $USER_CXXFLAGS"
 251   GLOBAL_LDFLAGS="$MACHINE_FLAG $SYSROOT_LDFLAGS $USER_LDFLAGS"
 252   # FIXME: Don't really know how to do with this, but this was the old behavior
 253   GLOBAL_CPPFLAGS="$SYSROOT_CFLAGS"
 254   AC_SUBST(GLOBAL_CFLAGS)
 255   AC_SUBST(GLOBAL_CXXFLAGS)
 256   AC_SUBST(GLOBAL_LDFLAGS)
 257   AC_SUBST(GLOBAL_CPPFLAGS)
 258 
 259   # FIXME: For compatilibity, export this as EXTRA_CFLAGS for now.
 260   EXTRA_CFLAGS="$MACHINE_FLAG $USER_CFLAGS"
 261   EXTRA_CXXFLAGS="$MACHINE_FLAG $USER_CXXFLAGS"


< prev index next >