diff options
author | Pierre-Eric Pelloux-Prayer <pierre-eric@lanedo.com> | 2012-07-09 12:09:54 +0200 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-07-10 16:23:34 +0100 |
commit | eb1192ec1fea481548b5a40f980f59b670232150 (patch) | |
tree | 7ec95a339dfd0405a33d3fa5fe7056a43aa15841 /odk/settings | |
parent | 81c5a10a8db5530eb028c85887f0cc73d16c04d3 (diff) |
solaris: update settings.mk to use gcc
Change-Id: Ife7a4806776f55babfab11ceac25a3d2d66fe5af
Diffstat (limited to 'odk/settings')
-rw-r--r-- | odk/settings/settings.mk | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/odk/settings/settings.mk b/odk/settings/settings.mk index 797d12300d2d..f2eeb144925a 100644 --- a/odk/settings/settings.mk +++ b/odk/settings/settings.mk @@ -173,21 +173,32 @@ DELRECURSIVE=rm -rf COPY=cp URLPREFIX=file:// +COMID=gcc3 +CPPU_ENV=gcc3 + # Include UDK version numbers include $(PRJ)/include/udkversion.mk +#SALLIB=-luno_sal +#CPPULIB=-luno_cppu +#CPPUHELPERLIB=-luno_cppuhelperC52 +#SALHELPERLIB=-luno_salhelperC52 +#REGLIB=-lreg +#STORELIB=-lstore SALLIB=-luno_sal CPPULIB=-luno_cppu -CPPUHELPERLIB=-luno_cppuhelperC52 -SALHELPERLIB=-luno_salhelperC52 +CPPUHELPERLIB=-luno_cppuhelper$(COMID) +SALHELPERLIB=-luno_salhelper$(COMID) REGLIB=-lreg STORELIB=-lstore EMPTYSTRING= PATH_SEPARATOR=: -CC_FLAGS_JNI=-c -KPIC -CC_FLAGS=-c -KPIC -xldscope=hidden +#CC_FLAGS_JNI=-c -KPIC +#CC_FLAGS=-c -KPIC -xldscope=hidden +CC_FLAGS_JNI=-c -fpic +CC_FLAGS=-c -fpic -fvisibility=hidden ifeq "$(DEBUG)" "yes" CC_FLAGS_JNI+=-g CC_FLAGS+=-g @@ -198,11 +209,14 @@ SDK_JAVA_INCLUDES = -I"$(OO_SDK_JAVA_HOME)/include" -I"$(OO_SDK_JAVA_HOME)/inclu # define for used compiler necessary for UNO # -DCPPU_ENV=sunpro5 -- sunpro cc 5.x solaris sparc/intel -CC_DEFINES_JNI=-DUNX -DSOLARIS -DCPPU_ENV=sunpro5 -CC_DEFINES=-DUNX -DSOLARIS -DSPARC -DCPPU_ENV=sunpro5 -DHAVE_GCC_VISIBILITY_FEATURE +#CC_DEFINES_JNI=-DUNX -DSOLARIS -DCPPU_ENV=sunpro5 +CC_DEFINES_JNI=-DUNX -DSOLARIS -DCPPU_ENV=$(CPPU_ENV) -DGCC -DGXX_INCLUDE_PATH=$(SDK_GXX_INCLUDE_PATH) +#CC_DEFINES=-DUNX -DSOLARIS -DSPARC -DCPPU_ENV=sunpro5 -DHAVE_GCC_VISIBILITY_FEATURE +CC_DEFINES=-DUNX -DSOLARIS -DSPARC -DCPPU_ENV=$(CPPU_ENV) -DHAVE_GCC_VISIBILITY_FEATURE -DGCC -DGXX_INCLUDE_PATH=$(SDK_GXX_INCLUDE_PATH) CC_OUTPUT_SWITCH=-o -LIBRARY_LINK_FLAGS=-w -mt -z combreloc -PIC -temp=/tmp '-R$$ORIGIN' -z text -norunpath -G -Bdirect -Bdynamic -lpthread -lCrun -lc -lm +#LIBRARY_LINK_FLAGS=-w -mt -z combreloc -PIC -temp=/tmp '-R$$ORIGIN' -z text -norunpath -G -Bdirect -Bdynamic -lpthread -lCrun -lc -lm +LIBRARY_LINK_FLAGS=-w -mt -z combreloc -fPIC -PIC -temp=/tmp '-R$$ORIGIN' -z text -norunpath -G -Bdirect -Bdynamic -lpthread -lCrun -lc -lm # means if used CC is lower then version 5.5 use option -instance=static ifeq ($(OO_SDK_CC_55_OR_HIGHER),) LIBRARY_LINK_FLAGS+=-instances=static |