diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-12-18 17:56:20 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-12-18 18:03:49 +0100 |
commit | 1bffa142c530b638e245e1aca58a27414d65e927 (patch) | |
tree | 6b6be62ed9c7d4bd4709a026f754f59e9c5ab3aa /odk/settings/settings.mk | |
parent | 6e06bd6cb5199b5164975eff97dd22b0a69829e5 (diff) |
fdo#72598: odk: remove SunStudio support
No idea if the GCC stuff that's in there actually works.
Change-Id: Idd1b93edd88609f3c09d14134d00a15fa9c0b0b7
Diffstat (limited to 'odk/settings/settings.mk')
-rw-r--r-- | odk/settings/settings.mk | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/odk/settings/settings.mk b/odk/settings/settings.mk index 21d6ceb01654..0e2895a037a2 100644 --- a/odk/settings/settings.mk +++ b/odk/settings/settings.mk @@ -154,7 +154,7 @@ endif # ########################################################################### ifneq (,$(findstring solaris,$(PLATFORM))) -# Settings for Solaris using Sun Workshop compiler +# Settings for Solaris using GCC PROCTYPE := $(shell $(PRJ)/config.guess | cut -d"-" -f1)$(shell /usr/ccs/bin/elfdump -e "$(OO_SDK_URE_HOME)/lib/libuno_sal.so.3" | /usr/xpg4/bin/grep -q -w ELFCLASS64 && echo 64) @@ -177,9 +177,9 @@ endif OS=SOLARIS PS=/ ICL=\$$ -CC=CC -LINK=CC -LIB=CC +CC=g++ +LINK=g++ +LIB=g++ ECHO=@echo MKDIR=mkdir -p CAT=cat @@ -213,33 +213,26 @@ PURPENVHELPERLIB=-luno_purpenvhelper$(COMID) EMPTYSTRING= PATH_SEPARATOR=: +# -O is necessary for inlining (see gcc documentation) ifeq "$(DEBUG)" "yes" OPT_FLAGS=-g +else +OPT_FLAGS=-O endif -#CC_FLAGS_JNI=-c -KPIC $(OPT_FLAGS) -#CC_FLAGS=-c -KPIC -xldscope=hidden $(OPT_FLAGS) CC_FLAGS_JNI=-c -fpic $(OPT_FLAGS) CC_FLAGS=-c -fpic -fvisibility=hidden $(OPT_FLAGS) CC_INCLUDES=-I. -I$(OUT)/inc -I$(OUT)/inc/examples -I$(PRJ)/include SDK_JAVA_INCLUDES = -I"$(OO_SDK_JAVA_HOME)/include" -I"$(OO_SDK_JAVA_HOME)/include/solaris" # 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_JNI=-DUNX -DSOLARIS -DCPPU_ENV=$(CPPU_ENV) -DGCC -#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 CC_OUTPUT_SWITCH=-o LIBO_SDK_LDFLAGS_STDLIBS = -#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 -endif COMP_LINK_FLAGS=$(LIBRARY_LINK_FLAGS) EXE_LINK_FLAGS=-w -mt -z combreloc -PIC -temp=/tmp -norunpath -Bdirect -z defs |