diff options
Diffstat (limited to 'solenv/inc/unxsols4.mk')
-rw-r--r-- | solenv/inc/unxsols4.mk | 16 |
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 |