summaryrefslogtreecommitdiff
path: root/solenv/inc/unxsols4.mk
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2008-12-30 13:48:34 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2008-12-30 13:48:34 +0000
commit41e0d74e92d660b1b2e96f6dbaa00eb3eb84623e (patch)
tree50006346a28aefe36934f388b105383d3e2c1365 /solenv/inc/unxsols4.mk
parent96000512682917df87d8c6e011d0827d188500cf (diff)
CWS-TOOLING: integrate CWS hr58
2008-12-29 16:47:08 +0100 hr r265821 : #i97331#: changes for compiling with SunStudio12 on Solaris 10 (x86) 2008-12-18 16:16:11 +0100 hr r265701 : #i97331#: revert to revision r265576 2008-12-18 16:00:41 +0100 hr r265699 : #i97331#: fix typo in last change 2008-12-17 18:16:18 +0100 hr r265653 : #i97331#: add comment 2008-12-17 18:11:11 +0100 hr r265652 : #i97331#: make -xc99=all again dependend on SYSBASEROOT being set 2008-12-17 01:54:23 +0100 hr r265576 : #i97331#: changes for compiling with SunStudio12 on Solaris 10 (Sparc)
Diffstat (limited to 'solenv/inc/unxsols4.mk')
-rw-r--r--solenv/inc/unxsols4.mk16
1 files changed, 11 insertions, 5 deletions
diff --git a/solenv/inc/unxsols4.mk b/solenv/inc/unxsols4.mk
index 06e9d50d78b6..c9c81dad2fb4 100644
--- a/solenv/inc/unxsols4.mk
+++ b/solenv/inc/unxsols4.mk
@@ -74,11 +74,11 @@ CFLAGSSLOCUIMT=-KPIC -mt
CFLAGSPROF=-xpg
CFLAGSDEBUG=-g
CFLAGSDBGUTIL=
-# -xarch=v8plus restrict target to v8plus (UltraSparc)
+# -m32 -xarch=sparc restrict target to 32 bit sparc
# -xO3 optimization level 3
# -xspace don't do optimizations which do increase binary size
# -xprefetch=yes do prefetching (helps on UltraSparc III)
-CFLAGSOPT=-xarch=v8plus -xO3 -xspace -xprefetch=yes
+CFLAGSOPT=-m32 -xarch=sparc -xO3 -xspace -xprefetch=yes
CFLAGSNOOPT=
CFLAGSOUTOBJ=-o
@@ -101,8 +101,14 @@ CFLAGSOUTOBJ=-o
# compilation unit that uses std::hash_map<sal_Int64, sal_Int64> (see
# sfx2/source/toolbox/imgmgr.cxx:1.27) and thus unfortunately needs to be
# disabled globally
+# - wnoretvalue: warning about the last statement of a function not
+# returning a value. Unfortunately triggers on perfectly acceptable
+# code, for example if the last statement in is a throw statement
+# - anonnotype: Warns if a type is declared in an anonymous union. Temporary
+# disabled until issue i97325 is fixed. Note: The compiler is actually
+# right about this warning, the C++ standard is explicit about this.
CFLAGSWARNCC=
-CFLAGSWARNCXX=+w2 -erroff=doubunder,identexpected,inllargeuse,inllargeint,notemsource,reftotemp,truncwarn
+CFLAGSWARNCXX=+w2 -erroff=doubunder,identexpected,inllargeuse,inllargeint,notemsource,reftotemp,truncwarn,wnoretvalue,anonnotype
CFLAGSWALLCC=$(CFLAGSWARNCC)
CFLAGSWALLCXX=$(CFLAGSWARNCXX)
CFLAGSWERRCC=-errwarn=%all
@@ -127,10 +133,10 @@ LINKC=$(CC)
# link against set of baseline libraries
.IF "$(SYSBASE)"!=""
C_RESTRICTIONFLAGS*=-xc99=none
-LD_OPTIONS+=-L$(SYSBASE)$/usr$/lib
+#LD_OPTIONS+:=-L$(SYSBASE)$/usr$/lib
CDEFS+=-DSYSBASE="$(SYSBASE)"
CFLAGSCC+=$(C_RESTRICTIONFLAGS)
-.EXPORT : LD_OPTIONS
+#.EXPORT : LD_OPTIONS
.ENDIF # "$(SYSBASE)"!=""
# -z combreloc combines multiple relocation sections. Reduces overhead on startup