components/ksh93/patches/005-compiler.patch
author Rich Burridge <rich.burridge@oracle.com>
Tue, 02 May 2017 17:33:26 -0700
changeset 7964 d9801318ed3d
parent 5129 5431772f7235
permissions -rw-r--r--
25981468 Build ilmbase and openexr with the GNU compilers

# This patch has been developed inhouse. This is needed for some Solaris specific build 
# tasks and has not been submitted to the community.
diff -rupN INIT.2011-02-08/src/cmd/INIT/cc.sol11.i386-64 INIT.2011-02-08.patched/src/cmd/INIT/cc.sol11.i386-64
diff -rupN INIT.2011-02-08/src/cmd/INIT/cc.sol11.i386-64 INIT.2011-02-08.patched/src/cmd/INIT/cc.sol11.i386-64
--- INIT.2011-02-08/src/cmd/INIT/cc.sol11.i386-64	1970-01-01 01:00:00.000000000 +0100
+++ INIT.2011-02-08.patched/src/cmd/INIT/cc.sol11.i386-64	2012-05-18 10:49:31.008310676 +0100
@@ -0,0 +1,9 @@
+: solaris.i386-64 cc wrapper for reasonable ansi C defaults and 64 bit : 2012-05-18 :
+
+HOSTTYPE=sol11.i386-64
+
+case " $* " in
+*" -dumpmachine "*) echo $HOSTTYPE; exit ;;
+esac
+
+$CC_EXPLICIT -m64 -xc99 -D_XPG6 "$@"
--- INIT.2011-02-08/src/cmd/INIT/cc.sol11.i386	1970-01-01 01:00:00.000000000 +0100
+++ INIT.2011-02-08.patched/src/cmd/INIT/cc.sol11.i386	2012-05-18 10:49:31.008310676 +0100
@@ -0,0 +1,9 @@
+: solaris.i386 cc wrapper for reasonable ansi C defaults and 32 bit : 2012-05-18 :
+
+HOSTTYPE=sol11.i386
+
+case " $* " in
+*" -dumpmachine "*) echo $HOSTTYPE; exit ;;
+esac
+
+$CC_EXPLICIT -m32 -xc99 -D_XPG6 "$@"
diff -rupN INIT.2011-02-08/src/cmd/INIT/cc.sol11.sparc-64 INIT.2011-02-08.patched/src/cmd/INIT/cc.sol11.sparc-64
--- INIT.2011-02-08/src/cmd/INIT/cc.sol11.sparc-64	1970-01-01 01:00:00.000000000 +0100
+++ INIT.2011-02-08.patched/src/cmd/INIT/cc.sol11.sparc-64	2012-05-18 10:49:20.339537677 +0100
@@ -0,0 +1,9 @@
+: solaris.sparc-64 cc wrapper for reasonable ansi C defaults and 64 bit : 2012-05-18 :
+
+HOSTTYPE=sol11.sparc-64
+
+case " $* " in
+*" -dumpmachine "*) echo $HOSTTYPE; exit ;;
+esac
+
+$CC_EXPLICIT -m64 -xc99 -D_XPG6 "$@"
diff -rupN INIT.2011-02-08/src/cmd/INIT/cc.sol11.sparc INIT.2011-02-08.patched/src/cmd/INIT/cc.sol11.sparc-64
--- INIT.2011-02-08/src/cmd/INIT/cc.sol11.sparc	1970-01-01 01:00:00.000000000 +0100
+++ INIT.2011-02-08.patched/src/cmd/INIT/cc.sol11.sparc	2012-05-18 10:49:20.339537677 +0100
@@ -0,0 +1,9 @@
+: solaris.sparc cc wrapper for reasonable ansi C defaults and 32 bit : 2012-05-18 :
+
+HOSTTYPE=sol11.sparc
+
+case " $* " in
+*" -dumpmachine "*) echo $HOSTTYPE; exit ;;
+esac
+
+$CC_EXPLICIT -m32 -xc99 -D_XPG6  "$@"