mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-10 00:00:50 +00:00
don't check constant string class for osx compiler/runtime
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30762 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
fcdd57d05f
commit
ea15e02a18
2 changed files with 56 additions and 42 deletions
7
configure
vendored
7
configure
vendored
|
@ -10265,7 +10265,13 @@ fi
|
|||
# See if we are using a compiler which allows us to change the class
|
||||
# to be used for constant strings by using the -fconstant-string-class
|
||||
# option. If that is the case, we change it to NSConstantString.
|
||||
# Unless we are building for the apple runtime (ie only building base
|
||||
# additions library and not implementing a constant string class).
|
||||
#---------------------------------------------------------------------
|
||||
if test "$OBJC_RUNTIME_LIB" = "nx" -o "$OBJC_RUNTIME_LIB" = "apple"; then
|
||||
NX_CONST_STRING_OBJCFLAGS=""
|
||||
NX_CONST_STRING_CLASS=NXConstantString
|
||||
else
|
||||
strclass_CPPFLAGS="$CPPFLAGS"
|
||||
CPPFLAGS="$CPPFLAGS -fconstant-string-class=FooConstantString"
|
||||
{ $as_echo "$as_me:$LINENO: checking if the compiler supports -fconstant-string-class" >&5
|
||||
|
@ -10350,6 +10356,7 @@ $as_echo "$as_me: error: Your compiler does not appear to implement the -fconsta
|
|||
fi
|
||||
fi
|
||||
CPPFLAGS="$strclass_CPPFLAGS"
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1461,7 +1461,13 @@ fi
|
|||
# See if we are using a compiler which allows us to change the class
|
||||
# to be used for constant strings by using the -fconstant-string-class
|
||||
# option. If that is the case, we change it to NSConstantString.
|
||||
# Unless we are building for the apple runtime (ie only building base
|
||||
# additions library and not implementing a constant string class).
|
||||
#---------------------------------------------------------------------
|
||||
if test "$OBJC_RUNTIME_LIB" = "nx" -o "$OBJC_RUNTIME_LIB" = "apple"; then
|
||||
NX_CONST_STRING_OBJCFLAGS=""
|
||||
NX_CONST_STRING_CLASS=NXConstantString
|
||||
else
|
||||
strclass_CPPFLAGS="$CPPFLAGS"
|
||||
CPPFLAGS="$CPPFLAGS -fconstant-string-class=FooConstantString"
|
||||
AC_MSG_CHECKING(if the compiler supports -fconstant-string-class)
|
||||
|
@ -1490,6 +1496,7 @@ else
|
|||
fi
|
||||
fi
|
||||
CPPFLAGS="$strclass_CPPFLAGS"
|
||||
fi
|
||||
|
||||
AC_SUBST(NX_CONST_STRING_OBJCFLAGS)
|
||||
AC_SUBST(NX_CONST_STRING_CLASS)
|
||||
|
|
Loading…
Reference in a new issue