[OpenIndiana-discuss] Compiling OpenOffice4
Eric Bautsch
eric.bautsch at pobox.com
Thu Feb 13 16:34:56 UTC 2014
I've been working on the same thing.
I think, the issue is the /usr/ccs/bin in the $PATH. God alone knows why that's
in there.
Anyway, here are my notes, to be read together with the web page by Apostolos.
(patches attached)
Note that I haven't succeeded as yet....
pkg install --accept \
pkg:/developer/build/ant pkg:/developer/java/junit \
pkg:/developer/java/jdk-7 pkg:/developer/gperf\
git make gcc-45 autoconf autogen automake-110 gnu-m4 \
pkg:/system/header pkg:/developer/gperf \
pkg:/developer/parser/bison \
pkg:/developer/lexer/flex pkg:/developer/documentation-tool/doxygen
/usr/perl5/bin/cpan -f -i LWP::UserAgent Archive::Zip
cd /home/bautsche/apache-openoffice/aoo-1565186-20140206/main
unset LD_LIBRARY_PATH
export LD_LIBRARY_PATH
export CONFIG_SHELL=/bin/bash
export LD_ALTEXEC=/usr/bin/gld
export PATH=/usr/perl5/bin:/usr/gcc/4.5/bin:/usr/bin:/usr/X11/bin
export ANT_HOME=/usr/
export JAVA_HOME=/usr/jdk/jdk1.7.0_45
autoconf
./configure \
--with-dmake-url=http://dmake.apache-extras.org.codespot.com/files/dmake-4.12.tar.bz2
\
--with-epm-url=http://www.msweet.org/files/project2/epm-3.7-source.tar.gz
--disable-odk \
--with-lang="en" \
--with-junit=/usr/share/lib/java/junit.jar --disable-randr \
--enable-category-b --enable-pdfimport \
--enable-wiki-publisher --with-dict=ALL \
--with-build-version="Built by Eric Bautsch" \
--with-package-format="installed" --with-jdk-home=/usr/jdk/jdk1.7.0_45 \
--without-stlport --with-system-libxml
# --prefix=/opt/openoffice
# modify SolarisX86GccEnv.Set.sh and ensure ^PATH= reads:
#
/usr/jdk/jdk1.7.0_45/bin:/usr/perl5/bin:/usr/bin:/usr/X11/bin:/home/bautsche/apache-openoffice/aoo-1565186-20140206/main/solenv/unxsogi.pro/bin:/home/bautsche/apache-openoffice/aoo-1565186-20140206/main/solenv/bin
#
"/usr/gcc/4.5/bin:$JAVA_HOME/bin:/usr/perl5/bin:/usr/bin:/usr/X11/bin:$SOLARENV/$INPATH/bin:$SOLARENV/bin"
. ./SolarisX86GccEnv.Set.sh
mkdir /home/bautsche/apache-openoffice/aoo-1565186-20140206/ext_sources
cp /home/bautsche/apache-openoffice/aoo-1565186-20140206-ext-sources/* \
/home/bautsche/apache-openoffice/aoo-1565186-20140206/ext_sources/
cd /home/bautsche/apache-openoffice/aoo-1565186-20140206/main/solenv/inc/
gpatch <
/home/bautsche/apache-openoffice/aoo-1565186-20140206-extras/tg_compv.patch
cd /home/bautsche/apache-openoffice/aoo-1565186-20140206/main
cp /home/bautsche/apache-openoffice/aoo-1565186-20140206-extras/solaris.mk \
solenv/gbuild/platform/solaris.mk
cp /home/bautsche/apache-openoffice/aoo-1565186-20140206-extras/unxsogi.mk \
solenv/inc/unxsogi.mk
for file in `find . -name makefile.mk`
do
cp -p ${file} ${file}.dist
sed -e 's/-lCstd/-stdc++/g' \
-e 's/\/usr\/ccs\/bin/\/usr\/bin/g' ${file}.dist > ${file}
done
cp -p odk/settings/settings.mk odk/settings/settings.mk.dist
sed -e 's/\/usr\/ccs\/bin/\/usr\/bin/g' odk/settings/settings.mk.dist > \
odk/settings/settings.mk
./bootstrap
cd sal/osl/unx
gpatch <
/home/bautsche/apache-openoffice/aoo-1565186-20140206-extras/file.cxx.patch
gpatch <
/home/bautsche/apache-openoffice/aoo-1565186-20140206-extras/util.c.patch
cd /home/bautsche/apache-openoffice/aoo-1565186-20140206/main
for file in solenv/inc/unxso*.mk
do
cp -p ${file} ${file}.dist
sed -e 's/^ASM=.*/ASM=\/usr\/bin\/gas/g' ${file}.dist > ${file}
done
ed soltools/adjustvisibility/adjustvisibility.cxx << EOI
/^#include
a
#include <string.h>
#include <stdlib.h>
#include <cstring>
.
w
q
EOI
for file in sal/util/makefile.mk salhelper/source/makefile.mk
store/util/makefile.mk \
registry/util/makefile.mk
do
cp -p $file ${file}.dist2
egrep -v '\.map' ${file}.dist2 > $file
done
cd instsetoo_native
build --all
HTH
Eric
On 13/02/2014 16:17, L'oiseau de mer wrote:
> Hi, Apostolos
> I want to ask you how to compile AOO in GCC?
> By default, AOO configure always talk me that have to use Sun CC.
> if i define CC=gcc CXX=G++ LD=gld, it will appear this error message when
> exec configure:
> ==================================================
> checking for bash... /usr/bin/bash
> checking gcc home... /opt/gnu/bin//gcc
> checking for gcc... /opt/gnu/bin/gcc
> checking whether the C compiler works... no
> configure: error: in `/UNIX-LAB/AOO401/aoo-4.0.1/main':
> configure: error: C compiler cannot create executables
>
> My System is Solaris 11.1, GCC version is 4.8.2. ld version is 2.24.
> Thanks.
> _______________________________________________
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss at openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
>
--
____
/ . Eric A. Bautsch
/-- __ ___ ______________________________________
/ / / / /
(_____/____(___(__________________/ email: eric.bautsch at pobox.com
-------------- next part --------------
--- file.cxx.orig Fri Feb 7 19:53:34 2014
+++ file.cxx Fri Feb 7 19:56:56 2014
@@ -1092,7 +1092,7 @@
OSL_TRACE(
"posix_madvise(..., POSIX_MADV_WILLNEED) failed with %d", e);
}
-#elif defined SOLARIS
+#elif defined NOTSOLARIS
if (madvise(static_cast< caddr_t >(p), nLength, MADV_WILLNEED) != 0)
{
OSL_TRACE("madvise(..., MADV_WILLNEED) failed with %d", errno);
-------------- next part --------------
--- main/soltools/mkdepend/imakemdep.h.dist Sun Feb 9 13:33:30 2014
+++ main/soltools/mkdepend/imakemdep.h Sun Feb 9 13:33:55 2014
@@ -221,7 +221,7 @@
#define DEFAULT_CPP "/usr/lpp/X11/Xamples/util/cpp/cpp"
#endif
#if defined(sun) && defined(SVR4)
-#define DEFAULT_CPP "/usr/ccs/lib/cpp"
+#define DEFAULT_CPP "/usr/gcc/4.5/bin/cpp"
#endif
#ifdef __bsdi__
#define DEFAULT_CPP "/usr/bin/cpp"
-------------- next part --------------
GUI := UNX
COM := GCC
gb_MKTEMP := mktemp -t gbuild.XXXXXX
gb_CC := gcc
gb_CXX := g++
gb_GCCP := gcc
gb_AR := ar
gb_AWK := /usr/xpg4/bin/awk
gb_CLASSPATHSEP := :
# use CC/CXX if they are nondefaults
ifneq ($(origin CC),default)
gb_CC := $(CC)
gb_GCCP := $(CC)
endif
ifneq ($(origin CXX),default)
gb_CXX := $(CXX)
endif
gb_OSDEFS := \
-D$(OS) \
-D$(GUI) \
-DSYSV \
-DSUN \
-DSUN4 \
-D_REENTRANT \
-D_POSIX_PTHREAD_SEMANTICS \
-D_PTHREADS \
-DUNIX \
-DUXN \
ifeq ($(CPUNAME),INTEL)
gb_OSDEFS += -DINTEL
endif
ifeq ($(GXX_INCLUDE_PATH),)
GXX_INCLUDE_PATH=$(COMPATH)/include/c++/$(shell gcc -dumpversion)
endif
gb_COMPILERDEFS := \
-D$(COM) \
-DCPPU_ENV=gcc3 \
-DGXX_INCLUDE_PATH=$(GXX_INCLUDE_PATH) \
gb_CFLAGS := \
-Wall \
-Wendif-labels \
-Wextra \
-Wshadow \
-fPIC \
-fmessage-length=0 \
-fno-common \
-fno-strict-aliasing \
-pipe \
gb_CXXFLAGS := \
-Wall \
-Wendif-labels \
-Wextra \
-Wno-ctor-dtor-privacy \
-Wno-non-virtual-dtor \
-Wshadow \
-fPIC \
-fmessage-length=0 \
-fno-common \
-fno-strict-aliasing \
-fno-use-cxa-atexit \
-pipe \
ifneq ($(EXTERNAL_WARNINGS_NOT_ERRORS),TRUE)
gb_CFLAGS_WERROR := -Werror
gb_CXXFLAGS_WERROR := -Werror
endif
gb_LinkTarget_EXCEPTIONFLAGS := \
-DEXCEPTIONS_ON \
-fexceptions \
-fno-enforce-eh-specs \
gb_LinkTarget_NOEXCEPTIONFLAGS := \
-DEXCEPTIONS_OFF \
-fno-exceptions \
gb_LinkTarget_LDFLAGS += \
$(subst -L../lib , ,$(SOLARLIB)) \
-w \
-lpthread \
-Bdirect \
-z defs \
-z combreloc \
ifeq ($(gb_DEBUGLEVEL),2)
gb_COMPILEROPTFLAGS := -O0
else
gb_COMPILEROPTFLAGS := -Os
endif
gb_COMPILERNOOPTFLAGS := -O0
# Helper class
gb_Helper_abbreviate_dirs_native = $(gb_Helper_abbreviate_dirs)
# convert parametters filesystem root to native notation
# does some real work only on windows, make sure not to
# break the dummy implementations on unx*
define gb_Helper_convert_native
$(1)
endef
# CObject class
define gb_CObject__command
$(call gb_Output_announce,$(2),$(true),C ,3)
$(call gb_Helper_abbreviate_dirs,\
mkdir -p $(dir $(1)) && \
mkdir -p $(dir $(call gb_CObject_get_dep_target,$(2))) && \
$(gb_CC) \
$(DEFS) $(CFLAGS) \
-c $(3) \
-o $(1) \
-MMD -MT $(call gb_CObject_get_target,$(2)) \
-MF $(call gb_CObject_get_dep_target,$(2)) \
-I$(dir $(3)) \
$(INCLUDE))
endef
# CxxObject class
define gb_CxxObject__command
$(call gb_Output_announce,$(2),$(true),CXX,3)
$(call gb_Helper_abbreviate_dirs,\
mkdir -p $(dir $(1)) && \
mkdir -p $(dir $(call gb_CxxObject_get_dep_target,$(2))) && \
$(gb_CXX) \
$(DEFS) $(CXXFLAGS) \
-c $(3) \
-o $(1) \
-MMD -MT $(call gb_CxxObject_get_target,$(2)) \
-MF $(call gb_CxxObject_get_dep_target,$(2)) \
-I$(dir $(3)) \
$(INCLUDE_STL) $(INCLUDE))
endef
# LinkTarget class
define gb_LinkTarget__get_rpath_for_layer
$(patsubst $(1):%,%,$(filter $(1):%,$(gb_LinkTarget__RPATHS)))
endef
gb_LinkTarget__RPATHS := \
URELIB:\dORIGIN \
UREBIN:\dORIGIN/../lib:\dORIGIN \
OOO:\dORIGIN:\dORIGIN/../ure-link/lib \
BRAND:\dORIGIN:\dORIGIN/../basis-link/program:\dORIGIN/../basis-link/ure-link/lib \
SDKBIN:\dORIGIN/../../ure-link/lib \
NONEBIN:\dORIGIN/../lib:\dORIGIN \
gb_LinkTarget_CFLAGS := $(gb_CFLAGS) $(gb_CFLAGS_WERROR) $(gb_COMPILEROPTFLAGS)
gb_LinkTarget_CXXFLAGS := $(gb_CXXFLAGS) $(gb_CXXFLAGS_WERROR)
ifeq ($(gb_DEBUGLEVEL),2)
gb_LinkTarget_CXXFLAGS += -ggdb3 -finline-limit=0 -fno-inline -fno-default-inline
gb_LinkTarget_CFLAGS += -ggdb3 -finline-limit=0 -fno-inline -fno-default-inline
endif
gb_LinkTarget_INCLUDE := $(filter-out %/stl, $(subst -I. , ,$(SOLARINC)))
gb_LinkTarget_INCLUDE_STL := $(filter %/stl, $(subst -I. , ,$(SOLARINC)))
define gb_LinkTarget__command_dynamiclink
$(call gb_Helper_abbreviate_dirs,\
mkdir -p $(dir $(1)) && \
$(gb_CXX) \
$(if $(filter Library CppunitTest,$(TARGETTYPE)),$(gb_Library_TARGETTYPEFLAGS)) \
$(subst \d,$$,$(RPATH)) $(LDFLAGS) \
$(foreach object,$(COBJECTS),$(call gb_CObject_get_target,$(object))) \
$(foreach object,$(CXXOBJECTS),$(call gb_CxxObject_get_target,$(object))) \
$(foreach object,$(GENCXXOBJECTS),$(call gb_GenCxxObject_get_target,$(object))) \
$(patsubst lib%.so,-l%,$(foreach lib,$(LINKED_LIBS),$(call gb_Library_get_filename,$(lib)))) \
$(patsubst %,-l%,$(EXTERNAL_LIBS)) \
$(foreach lib,$(LINKED_STATIC_LIBS),$(call gb_StaticLibrary_get_target,$(lib))) \
-o $(1))
endef
define gb_LinkTarget__command_staticlink
$(call gb_Helper_abbreviate_dirs,\
mkdir -p $(dir $(1)) && \
$(gb_AR) -rsu $(1) \
$(foreach object,$(COBJECTS),$(call gb_CObject_get_target,$(object))) \
$(foreach object,$(CXXOBJECTS),$(call gb_CxxObject_get_target,$(object))) \
$(foreach object,$(GENCXXOBJECTS),$(call gb_GenCxxObject_get_target,$(object))) \
2> /dev/null)
endef
define gb_LinkTarget__command
$(call gb_Output_announce,$(2),$(true),LNK,4)
$(if $(filter Library CppunitTest Executable,$(TARGETTYPE)),$(call gb_LinkTarget__command_dynamiclink,$(1)))
$(if $(filter StaticLibrary,$(TARGETTYPE)),$(call gb_LinkTarget__command_staticlink,$(1)))
endef
# Library class
gb_Library_DEFS :=
gb_Library_TARGETTYPEFLAGS := -shared -Wl,-M,/usr/lib/ld/map.noexstk
gb_Library_SYSPRE := lib
gb_Library_UNOVERPRE := $(gb_Library_SYSPRE)uno_
gb_Library_PLAINEXT := .so
gb_Library_RTEXT := gcc3$(gb_Library_PLAINEXT)
ifeq ($(gb_PRODUCT),$(true))
gb_Library_STLEXT := port_gcc$(gb_Library_PLAINEXT)
else
gb_Library_STLEXT := port_gcc_stldebug$(gb_Library_PLAINEXT)
endif
ifeq ($(CPUNAME),X86_64)
gb_Library_OOOEXT := $(gb_Library_PLAINEXT)
gb_Library_UNOEXT := .uno$(gb_Library_PLAINEXT)
else
gb_Library_OOOEXT := $(gb_Library_PLAINEXT)
gb_Library_UNOEXT := .uno$(gb_Library_PLAINEXT)
endif
gb_STDLIBS := \
m \
c \
gb_Library_PLAINLIBS_NONE += \
$(gb_STDLIBS) \
dl \
freetype \
jpeg \
pthread \
X11 \
Xext \
SM \
ICE \
z \
cppunit
gb_Library_FILENAMES := \
$(foreach lib,$(gb_Library_OOOLIBS),$(lib):$(gb_Library_SYSPRE)$(lib)$(gb_Library_OOOEXT)) \
$(foreach lib,$(gb_Library_PLAINLIBS_NONE),$(lib):$(gb_Library_SYSPRE)$(lib)$(gb_Library_PLAINEXT)) \
$(foreach lib,$(gb_Library_PLAINLIBS_URE),$(lib):$(gb_Library_SYSPRE)$(lib)$(gb_Library_PLAINEXT)) \
$(foreach lib,$(gb_Library_PLAINLIBS_OOO),$(lib):$(gb_Library_SYSPRE)$(lib)$(gb_Library_PLAINEXT)) \
$(foreach lib,$(gb_Library_RTLIBS),$(lib):$(gb_Library_SYSPRE)$(lib)$(gb_Library_RTEXT)) \
$(foreach lib,$(gb_Library_RTVERLIBS),$(lib):$(gb_Library_SYSPRE)$(lib)$(gb_Library_RTEXT)) \
$(foreach lib,$(gb_Library_UNOLIBS_URE),$(lib):$(lib)$(gb_Library_UNOEXT)) \
$(foreach lib,$(gb_Library_UNOLIBS_OOO),$(lib):$(lib)$(gb_Library_UNOEXT)) \
$(foreach lib,$(gb_Library_UNOVERLIBS),$(lib):$(gb_Library_UNOVERPRE)$(lib)$(gb_Library_PLAINEXT)) \
gb_Library_LAYER := \
$(foreach lib,$(gb_Library_OOOLIBS),$(lib):OOO) \
$(foreach lib,$(gb_Library_PLAINLIBS_URE),$(lib):URELIB) \
$(foreach lib,$(gb_Library_PLAINLIBS_OOO),$(lib):OOO) \
$(foreach lib,$(gb_Library_RTLIBS),$(lib):OOO) \
$(foreach lib,$(gb_Library_RTVERLIBS),$(lib):URELIB) \
$(foreach lib,$(gb_Library_UNOLIBS_URE),$(lib):URELIB) \
$(foreach lib,$(gb_Library_UNOLIBS_OOO),$(lib):OOO) \
$(foreach lib,$(gb_Library_UNOVERLIBS),$(lib):URELIB) \
define gb_Library_get_rpath
'-R$(call gb_LinkTarget__get_rpath_for_layer,$(call gb_Library_get_layer,$(1)))'
endef
define gb_Library_Library_platform
$(call gb_LinkTarget_get_target,$(2)) : RPATH := $(call gb_Library_get_rpath,$(1))
endef
# StaticLibrary class
gb_StaticLibrary_DEFS :=
gb_StaticLibrary_SYSPRE := lib
gb_StaticLibrary_PLAINEXT := .a
gb_StaticLibrary_JPEGEXT := lib$(gb_StaticLibrary_PLAINEXT)
gb_StaticLibrary_FILENAMES := \
$(foreach lib,$(gb_StaticLibrary_JPEGLIBS),$(lib):$(gb_StaticLibrary_SYSPRE)$(lib)$(gb_StaticLibrary_JPEGEXT)) \
$(foreach lib,$(gb_StaticLibrary_PLAINLIBS),$(lib):$(gb_StaticLibrary_SYSPRE)$(lib)$(gb_StaticLibrary_PLAINEXT)) \
gb_StaticLibrary_StaticLibrary_platform =
# Executable class
gb_Executable_EXT :=
gb_Executable_LAYER := \
$(foreach exe,$(gb_Executable_UREBIN),$(exe):UREBIN) \
$(foreach exe,$(gb_Executable_SDK),$(exe):SDKBIN) \
$(foreach exe,$(gb_Executable_OOO),$(exe):OOO) \
$(foreach exe,$(gb_Executable_BRAND),$(exe):BRAND) \
$(foreach exe,$(gb_Executable_NONE),$(exe):NONEBIN) \
define gb_Executable_get_rpath
'-R$(call gb_LinkTarget__get_rpath_for_layer,$(call gb_Executable_get_layer,$(1)))'
endef
define gb_Executable_Executable_platform
$(call gb_LinkTarget_get_target,$(2)) : RPATH := $(call gb_Executable_get_rpath,$(1))
endef
# CppunitTest class
gb_CppunitTest_CPPTESTPRECOMMAND := LD_LIBRARY_PATH=$(OUTDIR)/lib
gb_CppunitTest_SYSPRE := libtest_
gb_CppunitTest_EXT := .so
gb_CppunitTest_get_filename = $(gb_CppunitTest_SYSPRE)$(1)$(gb_CppunitTest_EXT)
gb_CppunitTest_get_libfilename = $(gb_CppunitTest_get_filename)
define gb_CppunitTest_CppunitTest_platform
$(call gb_LinkTarget_get_target,$(2)) : RPATH :=
endef
# JunitTest class
define gb_JunitTest_JunitTest_platform
$(call gb_JunitTest_get_target,$(1)) : DEFS := \
-Dorg.openoffice.test.arg.soffice="$$$${OOO_TEST_SOFFICE:-path:$(OUTDIR)/installation/opt/openoffice.org3/program/soffice}" \
-Dorg.openoffice.test.arg.env=LD_LIBRARY_PATH \
-Dorg.openoffice.test.arg.user=file://$(call gb_JunitTest_get_userdir,$(1)) \
endef
# SdiTarget class
gb_SdiTarget_SVIDLPRECOMMAND := LD_LIBRARY_PATH=$(OUTDIR)/lib
# SrsPartMergeTarget
gb_SrsPartMergeTarget_TRANSEXPRECOMMAND := LD_LIBRARY_PATH=$(OUTDIR)/lib
# SrsPartTarget class
gb_SrsPartTarget_RSCTARGET := $(OUTDIR)/bin/rsc
gb_SrsPartTarget_RSCCOMMAND := LD_LIBRARY_PATH=$(OUTDIR)/lib SOLARBINDIR=$(OUTDIR)/bin $(gb_SrsPartTarget_RSCTARGET)
define gb_SrsPartTarget__command_dep
$(call gb_Helper_abbreviate_dirs,\
$(gb_GCCP) \
-MM -MT $(call gb_SrsPartTarget_get_target,$(1)) \
$(INCLUDE) \
$(DEFS) \
-c -x c++-header $(2) \
-o $(call gb_SrsPartTarget_get_dep_target,$(1)))
endef
# ComponentTarget
gb_XSLTPROCPRECOMMAND := LD_LIBRARY_PATH=$(OUTDIR)/lib
gb_Library_COMPONENTPREFIXES := \
OOO:vnd.sun.star.expand:\dOOO_BASE_DIR/program/ \
URELIB:vnd.sun.star.expand:\dURE_INTERNAL_LIB_DIR/
-------------- next part --------------
--- tg_compv.mk.old ??? ??? 5 18:25:31 2014
+++ tg_compv.mk ??? ??? 10 20:00:33 2014
@@ -28,7 +28,9 @@
.IF "$(COMNAME)"=="" || "$(COMPATH:s!\!/!)"!="$(COMPATH_STORED)"
.IF "$(L10N_framework)"==""
-COMNAME:=
+COM:=GCC
+COMNAME:=gcc3
+COMID=gcc3
.IF "$(COM)"=="GCC"
CFLAGSVERSION=-dumpversion
@@ -157,3 +159,5 @@
.ENDIF # "$(L10N_framework)"==""
.ENDIF # "$(COMNAME)"==""
+COMID=gcc3
+SHORTSTDCPP3="6"
-------------- next part --------------
# mk file for unxsogi
ASM=/usr/bin/gas
AFLAGS=
CDEFAULTOPT*=-O2
SOLAR_JAVA=TRUE
JAVAFLAGSDEBUG=-g
# _PTHREADS is needed for the stl
CDEFS+=-D_PTHREADS -D_REENTRANT -DSYSV -DSUN -DSUN4 -D_POSIX_PTHREAD_SEMANTICS -D_USE_NAMESPACE=1
.IF "$(SOLAR_JAVA)"!=""
JAVADEF=-DSOLAR_JAVA
.IF "$(debug)"==""
JAVA_RUNTIME=-ljava
.ELSE
JAVA_RUNTIME=-ljava_g
.ENDIF
.ENDIF
# architecture dependent flags for the C and C++ compiler that can be changed by
# exporting the variable ARCH_FLAGS="..." in the shell, which is used to start build
ARCH_FLAGS*=
CXX*=g++
CC*=gcc
CFLAGS=-c
CFLAGSCC= -pipe $(ARCH_FLAGS)
CFLAGSEXCEPTIONS=-fexceptions
CFLAGS_NO_EXCEPTIONS=-fno-exceptions
CFLAGSCXX= -pipe $(ARCH_FLAGS) -Wno-ctor-dtor-privacy -fno-use-cxa-atexit
.IF "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE"
CFLAGSCXX += -fvisibility-inlines-hidden
.ENDIF # "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE"
PICSWITCH:=-fPIC
CFLAGSOBJGUIMT=
CFLAGSOBJCUIMT=
CFLAGSSLOGUIMT=$(PICSWITCH)
CFLAGSSLOCUIMT=$(PICSWITCH)
CFLAGSPROF=
CFLAGSDEBUG=-g
CFLAGSDBGUTIL=
CFLAGSOPT=-O1
CFLAGSNOOPT=
CFLAGSOUTOBJ=-o
STATIC = -Wl,-Bstatic
DYNAMIC = -Wl,-Bdynamic
LINK*=$(CXX)
LINKC*=$(CC)
LINKFLAGS=-lstdc++
LINKFLAGSAPPGUI=-Wl,-export-dynamic
LINKFLAGSSHLGUI=-shared
LINKFLAGSAPPCUI=-Wl,-export-dynamic
LINKFLAGSSHLCUI=-shared
LINKFLAGSTACK=
LINKFLAGSPROF=
LINKFLAGSOPT=
LINKFLAGS=
LINKFLAGSAPPGUI=
LINKFLAGSSHLGUI=-shared
LINKFLAGSAPPCUI=
LINKFLAGSSHLCUI=-shared
LINKFLAGSTACK=
LINKFLAGSPROF=
LINKFLAGSDEBUG=-ggdb3 -finline-limit=0 -fno-inline -fno-default-inline
LINKFLAGSOPT=
LINKFLAGSDEFS*=-Wl,-z,defs
LINKFLAGSRUNPATH_URELIB=-Wl,-rpath,\''$$ORIGIN'\'
LINKFLAGSRUNPATH_UREBIN=-Wl,-rpath,\''$$ORIGIN'\'
LINKFLAGSRUNPATH_OOO=-Wl,-rpath,\''$$ORIGIN'\'
LINKFLAGSRUNPATH_SDK=-Wl,-rpath,\''$$ORIGIN'\'
LINKFLAGSRUNPATH_BRAND=-Wl,-rpath,\''$$ORIGIN'\'
LINKFLAGSRUNPATH_OXT=
LINKFLAGSRUNPATH_BOXT=-Wl,-rpath,\''$$ORIGIN'\'
LINKFLAGSRUNPATH_NONE=
LINKFLAGS=-Wl,-z,combreloc $(LINKFLAGSDEFS)
#LINKVERSIONMAPFLAG=-M
LINKVERSIONMAPFLAG=
#LINKFLAGSNOEXSTK*=-Wl,-M,/usr/lib/ld/map.noexstk
LINKFLAGSNOEXSTK*=-Wl,-z,noexecstack
LINKFLAGSAPPGUI+=$(LINKFLAGSNOEXSTK)
LINKFLAGSAPPCUI+=$(LINKFLAGSNOEXSTK)
# enable visibility define in "sal/types.h"
.IF "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE"
CDEFS += -DHAVE_GCC_VISIBILITY_FEATURE
.ENDIF # "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE"
# Reihenfolge der libs NICHT egal!
STDLIBCPP=-lstdc++
STDOBJVCL=$(L)/salmain.o
STDOBJGUI=
STDSLOGUI=
STDOBJCUI=
STDSLOCUI=
# libraries for linking shared libraries
STDSHLGUIMT=$(DYNAMIC) -lpthread -lthread -lm -lc
STDSHLCUIMT=$(DYNAMIC) -lpthread -lthread -lm -lc
STDLIBGUIMT+=-lX11
LIBMGR=ar
LIBFLAGS=-r
# LIBEXT=.so
IMPLIB=
IMPLIBFLAGS=
MAPSYM=
MAPSYMFLAGS=
RC=irc
RCFLAGS=-fo$@ $(RCFILES)
RCLINK=
RCLINKFLAGS=
RCSETVERSION=
DLLPOSTFIX=
DLLPRE=lib
DLLPOST=.so
-------------- next part --------------
--- util.c.org Thu Feb 6 13:21:28 2014
+++ util.c Wed Feb 12 17:02:16 2014
@@ -313,7 +313,7 @@
#endif
#if ( defined(__GNUC__) && (defined(X86) || defined(X86_64)) )\
- || ( defined(SOLARIS) && defined (__SUNPRO_C) && defined(__i386) )
+ || ( defined(SOLARIS) && ( defined (__SUNPRO_C) || defined(__GNUC__) ) && defined(__i386) )
/* Safe default */
int osl_isSingleCPU = 0;
More information about the OpenIndiana-discuss
mailing list