mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
Fix Solaris cc wrappers (re: 4e67234a
)
The versions from the Solaris patch require $CC_EXPLICIT to be set, which is specific to the internal Solaris build environment. src/cmd/INIT/cc.sol11.*: - Cope without $CC_EXPLICIT set in environment; fall back to $CC and if that is not set either, detect whether to use cc or gcc. - Set appropriate flags for cc (Solaris Studio) or gcc, including the necessary -D_XPG6 flag, without which ksh crashes on Solaris. bin/package, src/cmd/INIT/package.sh: - Update hack to add the -D_XPG6 flag so it applies to gcc only (note: the src/cmd/INIT/cc.* scripts are never used for gcc).
This commit is contained in:
parent
2e839d8775
commit
68a6f9a6e2
6 changed files with 38 additions and 10 deletions
|
@ -5442,12 +5442,12 @@ make|view)
|
|||
esac
|
||||
;;
|
||||
esac
|
||||
# Hack for Solaris 11.4, which needs -D_XPG6 in C flags to not segfault
|
||||
# Hack for Solaris gcc, which needs -D_XPG6 in C flags to not segfault
|
||||
case `uname` in
|
||||
SunOS) case " $CCFLAGS " in
|
||||
SunOS) case "$CC, $CCFLAGS " in
|
||||
*" -D_XPG6 "*)
|
||||
;;
|
||||
*) CCFLAGS="-D_XPG6${CCFLAGS:+ $CCFLAGS}"
|
||||
*gcc,*) CCFLAGS="-D_XPG6${CCFLAGS:+ $CCFLAGS}"
|
||||
export CCFLAGS
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue