< prev index next >

make/autoconf/flags-other.m4

Print this page
rev 59102 : imported patch build


  30 
  31 AC_DEFUN([FLAGS_SETUP_ARFLAGS],
  32 [
  33   # FIXME: figure out if we should select AR flags depending on OS or toolchain.
  34   if test "x$OPENJDK_TARGET_OS" = xaix; then
  35     ARFLAGS="-X64"
  36   elif test "x$OPENJDK_TARGET_OS" = xwindows; then
  37     # lib.exe is used as AR to create static libraries.
  38     ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT"
  39   else
  40     ARFLAGS=""
  41   fi
  42 
  43   AC_SUBST(ARFLAGS)
  44 ])
  45 
  46 AC_DEFUN([FLAGS_SETUP_STRIPFLAGS],
  47 [
  48   ## Setup strip.
  49   # FIXME: should this really be per platform, or should it be per toolchain type?
  50   # strip is not provided by clang or solstudio; so guessing platform makes most sense.
  51   # FIXME: we should really only export STRIPFLAGS from here, not POST_STRIP_CMD.
  52   if test "x$OPENJDK_TARGET_OS" = xlinux; then
  53     STRIPFLAGS="-g"
  54   elif test "x$OPENJDK_TARGET_OS" = xsolaris; then
  55     STRIPFLAGS="-x"
  56   elif test "x$OPENJDK_TARGET_OS" = xmacosx; then
  57     STRIPFLAGS="-S"
  58   elif test "x$OPENJDK_TARGET_OS" = xaix; then
  59     STRIPFLAGS="-X32_64"
  60   fi
  61 
  62   AC_SUBST(STRIPFLAGS)
  63 ])
  64 
  65 AC_DEFUN([FLAGS_SETUP_RCFLAGS],
  66 [
  67   # On Windows, we need to set RC flags.
  68   if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
  69     RC_FLAGS="-nologo -l0x409"
  70     JVM_RCFLAGS="-nologo"
  71     if test "x$DEBUG_LEVEL" = xrelease; then
  72       RC_FLAGS="$RC_FLAGS -DNDEBUG"
  73       JVM_RCFLAGS="$JVM_RCFLAGS -DNDEBUG"
  74     fi
  75 




  30 
  31 AC_DEFUN([FLAGS_SETUP_ARFLAGS],
  32 [
  33   # FIXME: figure out if we should select AR flags depending on OS or toolchain.
  34   if test "x$OPENJDK_TARGET_OS" = xaix; then
  35     ARFLAGS="-X64"
  36   elif test "x$OPENJDK_TARGET_OS" = xwindows; then
  37     # lib.exe is used as AR to create static libraries.
  38     ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT"
  39   else
  40     ARFLAGS=""
  41   fi
  42 
  43   AC_SUBST(ARFLAGS)
  44 ])
  45 
  46 AC_DEFUN([FLAGS_SETUP_STRIPFLAGS],
  47 [
  48   ## Setup strip.
  49   # FIXME: should this really be per platform, or should it be per toolchain type?
  50   # strip is not provided by clang; so guessing platform makes most sense.
  51   # FIXME: we should really only export STRIPFLAGS from here, not POST_STRIP_CMD.
  52   if test "x$OPENJDK_TARGET_OS" = xlinux; then
  53     STRIPFLAGS="-g"


  54   elif test "x$OPENJDK_TARGET_OS" = xmacosx; then
  55     STRIPFLAGS="-S"
  56   elif test "x$OPENJDK_TARGET_OS" = xaix; then
  57     STRIPFLAGS="-X32_64"
  58   fi
  59 
  60   AC_SUBST(STRIPFLAGS)
  61 ])
  62 
  63 AC_DEFUN([FLAGS_SETUP_RCFLAGS],
  64 [
  65   # On Windows, we need to set RC flags.
  66   if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
  67     RC_FLAGS="-nologo -l0x409"
  68     JVM_RCFLAGS="-nologo"
  69     if test "x$DEBUG_LEVEL" = xrelease; then
  70       RC_FLAGS="$RC_FLAGS -DNDEBUG"
  71       JVM_RCFLAGS="$JVM_RCFLAGS -DNDEBUG"
  72     fi
  73 


< prev index next >