mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-24 23:14:14 +00:00
bin/package, src/cmd/INIT/package.sh: - CCFLAGS overwrites the autodetected optimisation flags (e.g. -Os) if set. Unfortunately, that also happened when we added something to CCFLAGS for a release build or to add an extra flag needed by Solaris. The fix is to use a new flags variable (KSH_RELFLAGS) instead. This needs to be done in a different place as it needs to be added to the mamake command as an assignment argument. - Remove the Solaris CCFLAGS hack; see features/common below. src/*/*/Mamfile: - Add ${KSH_RELFLAGS} to all the compiler commands. src/lib/libast/features/common: - Enable POSIX standard on Solaris (i.e.: if __sun is defined) by defining _XPG6 directly in the feature test that generates ast_std.h, which is indirectly included by everything. This removes the need to pass -D_XPG6 via CCFLAGS. (Doing so automatically with gcc was not otherwise possible.) src/cmd/INIT/cc.sol11.*: - No longer pass -D_XPG6, as per above.
18 lines
480 B
Text
Executable file
18 lines
480 B
Text
Executable file
: solaris.i386 cc wrapper for reasonable ansi C defaults and 32 bit : 2021-01-17 :
|
|
|
|
HOSTTYPE=sol11.i386
|
|
|
|
case " $* " in
|
|
*" -dumpmachine "*) echo $HOSTTYPE; exit ;;
|
|
esac
|
|
|
|
# Solaris build scripts set $CC_EXPLICIT. If not set, function without it.
|
|
case ${CC_EXPLICIT:=$CC} in
|
|
'' | cc)
|
|
PATH=`/usr/bin/getconf PATH` # avoid infinite recursion executing 'cc'
|
|
CC_EXPLICIT=cc
|
|
esac
|
|
|
|
# Note: the _XPG6 macro is now defined in src/lib/libast/features/common
|
|
|
|
$CC_EXPLICIT -m32 -xc99 "$@"
|