unxfbsd.mk (9b1168a7) unxfbsd.mk (25da6cb0)
1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2010 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#

--- 17 unchanged lines hidden (view full) ---

26#*************************************************************************
27
28# Makefile for FreeBSD.
29
30ASM=
31AFLAGS=
32
33SOLAR_JAVA*=
1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2010 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#

--- 17 unchanged lines hidden (view full) ---

26#*************************************************************************
27
28# Makefile for FreeBSD.
29
30ASM=
31AFLAGS=
32
33SOLAR_JAVA*=
34PICSWITCH*:=-fpic
34JAVAFLAGSDEBUG=-g
35
36# Include arch specific makefile.
37.IF "$(CPUNAME)" == "INTEL"
38.INCLUDE : unxfbsdi.mk
39.ENDIF
40.IF "$(CPUNAME)" == "X86_64"
41.INCLUDE : unxfbsdx.mk

--- 21 unchanged lines hidden (view full) ---

63.ENDIF
64.ENDIF
65
66# name of C++ Compiler
67CXX*=g++
68# name of C Compiler
69CC*=gcc
70.IF "$(SYSBASE)"!=""
35JAVAFLAGSDEBUG=-g
36
37# Include arch specific makefile.
38.IF "$(CPUNAME)" == "INTEL"
39.INCLUDE : unxfbsdi.mk
40.ENDIF
41.IF "$(CPUNAME)" == "X86_64"
42.INCLUDE : unxfbsdx.mk

--- 21 unchanged lines hidden (view full) ---

64.ENDIF
65.ENDIF
66
67# name of C++ Compiler
68CXX*=g++
69# name of C Compiler
70CC*=gcc
71.IF "$(SYSBASE)"!=""
71CFLAGS_SYSBASE:=-isystem $(SYSBASE)/usr/include
72CFLAGS_SYSBASE:=--sysroot=$(SYSBASE)
72CXX+:=$(CFLAGS_SYSBASE)
73CC+:=$(CFLAGS_SYSBASE)
74.ENDIF # "$(SYSBASE)"!=""
75CFLAGS+=-fmessage-length=0 -c
76
77# flags to enable build with symbols; required for crashdump feature
78.IF "$(ENABLE_SYMBOLS)"=="SMALL"
79CFLAGSENABLESYMBOLS=-g1

--- 6 unchanged lines hidden (view full) ---

86CFLAGSCC= -pipe $(ARCH_FLAGS)
87# Flags for enabling exception handling
88CFLAGSEXCEPTIONS=-fexceptions -fno-enforce-eh-specs
89# Flags for disabling exception handling
90CFLAGS_NO_EXCEPTIONS=-fno-exceptions
91
92# -fpermissive should be removed as soon as possible
93CFLAGSCXX= -pipe $(ARCH_FLAGS)
73CXX+:=$(CFLAGS_SYSBASE)
74CC+:=$(CFLAGS_SYSBASE)
75.ENDIF # "$(SYSBASE)"!=""
76CFLAGS+=-fmessage-length=0 -c
77
78# flags to enable build with symbols; required for crashdump feature
79.IF "$(ENABLE_SYMBOLS)"=="SMALL"
80CFLAGSENABLESYMBOLS=-g1

--- 6 unchanged lines hidden (view full) ---

87CFLAGSCC= -pipe $(ARCH_FLAGS)
88# Flags for enabling exception handling
89CFLAGSEXCEPTIONS=-fexceptions -fno-enforce-eh-specs
90# Flags for disabling exception handling
91CFLAGS_NO_EXCEPTIONS=-fno-exceptions
92
93# -fpermissive should be removed as soon as possible
94CFLAGSCXX= -pipe $(ARCH_FLAGS)
94PICSWITCH:=-fpic
95.IF "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE"
96CFLAGSCXX += -fvisibility-inlines-hidden
97.ENDIF # "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE"
98
99# Compiler flags for compiling static object in multi threaded environment with graphical user interface
100CFLAGSOBJGUIMT=
101# Compiler flags for compiling static object in multi threaded environment with character user interface
102CFLAGSOBJCUIMT=

--- 28 unchanged lines hidden (view full) ---

131STATIC = -Wl,-Bstatic
132DYNAMIC = -Wl,-Bdynamic
133
134# name of linker
135LINK*=$(CXX)
136LINKC*=$(CC)
137
138# default linker flags
95.IF "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE"
96CFLAGSCXX += -fvisibility-inlines-hidden
97.ENDIF # "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE"
98
99# Compiler flags for compiling static object in multi threaded environment with graphical user interface
100CFLAGSOBJGUIMT=
101# Compiler flags for compiling static object in multi threaded environment with character user interface
102CFLAGSOBJCUIMT=

--- 28 unchanged lines hidden (view full) ---

131STATIC = -Wl,-Bstatic
132DYNAMIC = -Wl,-Bdynamic
133
134# name of linker
135LINK*=$(CXX)
136LINKC*=$(CC)
137
138# default linker flags
139LINKFLAGSDEFS*=#-Wl,-z,defs
140LINKFLAGSRUNPATH_URELIB=-Wl,-z,origin -Wl,-rpath,\''$$ORIGIN'\'
141LINKFLAGSRUNPATH_UREBIN=-Wl,-z,origin -Wl,-rpath,\''$$ORIGIN/../lib:$$ORIGIN'\'
139.IF "$(SYSBASE)"!=""
140LINKFLAGS_SYSBASE:=-Wl,--sysroot=$(SYSBASE)
141.ENDIF # "$(SYSBASE)"!=""
142LINKFLAGSDEFS*=-Wl,-z,defs
143LINKFLAGSRUNPATH_URELIB=-Wl,-rpath,\''$$ORIGIN'\'
144LINKFLAGSRUNPATH_UREBIN=-Wl,-rpath,\''$$ORIGIN/../lib:$$ORIGIN'\'
142 #TODO: drop $ORIGIN once no URE executable is also shipped in OOo
145 #TODO: drop $ORIGIN once no URE executable is also shipped in OOo
143LINKFLAGSRUNPATH_OOO=-Wl,-z,origin -Wl,-rpath,\''$$ORIGIN:$$ORIGIN/../ure-link/lib'\'
144LINKFLAGSRUNPATH_SDK=-Wl,-z,origin -Wl,-rpath,\''$$ORIGIN/../../ure-link/lib'\'
145LINKFLAGSRUNPATH_BRAND=-Wl,-z,origin -Wl,-rpath,\''$$ORIGIN:$$ORIGIN/../basis-link/program:$$ORIGIN/../basis-link/ure-link/lib'\'
146LINKFLAGSRUNPATH_OOO=-Wl,-rpath,\''$$ORIGIN:$$ORIGIN/../ure-link/lib'\'
147LINKFLAGSRUNPATH_SDK=-Wl,-rpath,\''$$ORIGIN/../../ure-link/lib'\'
148LINKFLAGSRUNPATH_BRAND=-Wl,-rpath,\''$$ORIGIN:$$ORIGIN/../basis-link/program:$$ORIGIN/../basis-link/ure-link/lib'\'
146LINKFLAGSRUNPATH_OXT=
149LINKFLAGSRUNPATH_OXT=
150LINKFLAGSRUNPATH_BOXT=-Wl,-rpath,\''$$ORIGIN/../../../basis-link/program'\'
147LINKFLAGSRUNPATH_NONE=
151LINKFLAGSRUNPATH_NONE=
148LINKFLAGS=-Wl,-z,combreloc $(LINKFLAGSDEFS)
152LINKFLAGS=-Wl,-z,combreloc $(LINKFLAGSDEFS) $(LINKFLAGS_SYSBASE)
149
150# linker flags for linking applications
153
154# linker flags for linking applications
151LINKFLAGSAPPGUI= -Wl,-export-dynamic -Wl,--noinhibit-exec
152LINKFLAGSAPPCUI= -Wl,-export-dynamic -Wl,--noinhibit-exec
155LINKFLAGSAPPGUI= -Wl,-export-dynamic -Wl,--noinhibit-exec \
156 -Wl,-rpath-link,$(LB):$(SOLARLIBDIR):$(SYSBASE)/lib:$(SYSBASE)/usr/lib
157LINKFLAGSAPPCUI= -Wl,-export-dynamic -Wl,--noinhibit-exec \
158 -Wl,-rpath-link,$(LB):$(SOLARLIBDIR):$(SYSBASE)/lib:$(SYSBASE)/usr/lib
153
154# linker flags for linking shared libraries
155LINKFLAGSSHLGUI= -shared
156LINKFLAGSSHLCUI= -shared
157
158LINKFLAGSTACK=
159LINKFLAGSPROF=
160LINKFLAGSDEBUG=-g

--- 6 unchanged lines hidden (view full) ---

167
168SONAME_SWITCH=-Wl,-h
169
170# Sequence of libs does matter !
171
172STDLIBCPP=-lstdc++
173
174# default objectfilenames to link
159
160# linker flags for linking shared libraries
161LINKFLAGSSHLGUI= -shared
162LINKFLAGSSHLCUI= -shared
163
164LINKFLAGSTACK=
165LINKFLAGSPROF=
166LINKFLAGSDEBUG=-g

--- 6 unchanged lines hidden (view full) ---

173
174SONAME_SWITCH=-Wl,-h
175
176# Sequence of libs does matter !
177
178STDLIBCPP=-lstdc++
179
180# default objectfilenames to link
175STDOBJVCL=$(L)/salmain.o
181STDOBJVCL=$(L)$/salmain.o
176STDOBJGUI=
177STDSLOGUI=
178STDOBJCUI=
179STDSLOCUI=
180
182STDOBJGUI=
183STDSLOGUI=
184STDOBJCUI=
185STDSLOCUI=
186
187.IF "$(ALLOC)" == "PTMALLOC"
188STDLIBGUIMT+=-lptmalloc
189STDLIBCUIMT+=-lptmalloc
190STDSHLGUIMT+=-lptmalloc
191STDSHLCUIMT+=-lptmalloc
192.ELIF "$(ALLOC)" == "TCMALLOC"
193STDLIBGUIMT+=-ltcmalloc
194STDLIBCUIMT+=-ltcmalloc
195STDSHLGUIMT+=-ltcmalloc
196STDSHLCUIMT+=-ltcmalloc
197.ENDIF
198
199.IF "$(HAVE_LD_HASH_STYLE)" == "TRUE"
200LINKFLAGS += -Wl,--hash-style=both
201.ELSE
202LINKFLAGS += -Wl,-zdynsort
203.ENDIF
204
181# libraries for linking applications
205# libraries for linking applications
182STDLIBGUIMT=-lX11 $(PTHREAD_LIBS) -lm
183STDLIBCUIMT=$(PTHREAD_LIBS) -lm
206STDLIBGUIMT+=-Wl,--as-needed $(PTHREAD_LIBS) -lm -Wl,--no-as-needed
207STDLIBCUIMT+=-Wl,--as-needed $(PTHREAD_LIBS) -lm -Wl,--no-as-needed
184# libraries for linking shared libraries
208# libraries for linking shared libraries
185STDSHLGUIMT=-lX11 -lXext $(PTHREAD_LIBS) -lm
186STDSHLCUIMT=$(PTHREAD_LIBS) -lm
209STDSHLGUIMT+=-Wl,--as-needed $(PTHREAD_LIBS) -lm -Wl,--no-as-needed
210STDSHLCUIMT+=-Wl,--as-needed $(PTHREAD_LIBS) -lm -Wl,--no-as-needed
187
211
212X11LINK_DYNAMIC = -Wl,--as-needed -lXext -lX11 -Wl,--no-as-needed
213
188LIBSALCPPRT*=-Wl,--whole-archive -lsalcpprt -Wl,--no-whole-archive
189
190.IF "$(USE_STLP_DEBUG)" != ""
191.IF "$(STLPORT_VER)" >= "500"
192LIBSTLPORT=$(DYNAMIC) -lstlportstlg
193LIBSTLPORTST=$(STATIC) -lstlportstlg $(DYNAMIC)
194.ELSE
195LIBSTLPORT=$(DYNAMIC) -lstlport_gcc_stldebug

--- 26 unchanged lines hidden (view full) ---

222RCFLAGS=-fo$@ $(RCFILES)
223RCLINK=
224RCLINKFLAGS=
225RCSETVERSION=
226
227# platform specific identifier for shared libs
228DLLPRE=lib
229DLLPOST=.so
214LIBSALCPPRT*=-Wl,--whole-archive -lsalcpprt -Wl,--no-whole-archive
215
216.IF "$(USE_STLP_DEBUG)" != ""
217.IF "$(STLPORT_VER)" >= "500"
218LIBSTLPORT=$(DYNAMIC) -lstlportstlg
219LIBSTLPORTST=$(STATIC) -lstlportstlg $(DYNAMIC)
220.ELSE
221LIBSTLPORT=$(DYNAMIC) -lstlport_gcc_stldebug

--- 26 unchanged lines hidden (view full) ---

248RCFLAGS=-fo$@ $(RCFILES)
249RCLINK=
250RCLINKFLAGS=
251RCSETVERSION=
252
253# platform specific identifier for shared libs
254DLLPRE=lib
255DLLPOST=.so
256PCHPOST=.gch