freebsd.mk (37816a14) freebsd.mk (a8e4828d)
1#*************************************************************************
2#
3# Licensed to the Apache Software Foundation (ASF) under one
4# or more contributor license agreements. See the NOTICE file
5# distributed with this work for additional information
6# regarding copyright ownership. The ASF licenses this file
7# to you under the Apache License, Version 2.0 (the
8# "License"); you may not use this file except in compliance

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

116 -DEXCEPTIONS_OFF \
117 -fno-exceptions \
118
119gb_LinkTarget_LDFLAGS += \
120 -Wl,-rpath-link,$(SYSBASE)/lib:$(SYSBASE)/usr/lib \
121 -Wl,-z,combreloc \
122 -Wl,-z,defs \
123 $(subst -L../lib , ,$(SOLARLIB)) \
1#*************************************************************************
2#
3# Licensed to the Apache Software Foundation (ASF) under one
4# or more contributor license agreements. See the NOTICE file
5# distributed with this work for additional information
6# regarding copyright ownership. The ASF licenses this file
7# to you under the Apache License, Version 2.0 (the
8# "License"); you may not use this file except in compliance

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

116 -DEXCEPTIONS_OFF \
117 -fno-exceptions \
118
119gb_LinkTarget_LDFLAGS += \
120 -Wl,-rpath-link,$(SYSBASE)/lib:$(SYSBASE)/usr/lib \
121 -Wl,-z,combreloc \
122 -Wl,-z,defs \
123 $(subst -L../lib , ,$(SOLARLIB)) \
124 \
124
125ifeq ($(HAVE_LD_HASH_STYLE),TRUE)
126gb_LinkTarget_LDFLAGS += \
127 -Wl,--hash-style=both \
128
129endif
130
131ifneq ($(HAVE_LD_BSYMBOLIC_FUNCTIONS),)

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

167 -c $(3) \
168 -o $(1) \
169 -MMD -MT $(call gb_CObject_get_target,$(2)) \
170 -MF $(call gb_CObject_get_dep_target,$(2)) \
171 -I$(dir $(3)) \
172 $(INCLUDE))
173endef
174
125
126ifeq ($(HAVE_LD_HASH_STYLE),TRUE)
127gb_LinkTarget_LDFLAGS += \
128 -Wl,--hash-style=both \
129
130endif
131
132ifneq ($(HAVE_LD_BSYMBOLIC_FUNCTIONS),)

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

168 -c $(3) \
169 -o $(1) \
170 -MMD -MT $(call gb_CObject_get_target,$(2)) \
171 -MF $(call gb_CObject_get_dep_target,$(2)) \
172 -I$(dir $(3)) \
173 $(INCLUDE))
174endef
175
176# convert parametters filesystem root to native notation
177# does some real work only on windows, make sure not to
178# break the dummy implementations on unx*
179define gb_Helper_convert_native
180$(1)
181endef
175
176# CxxObject class
177
178define gb_CxxObject__command
179$(call gb_Output_announce,$(2),$(true),CXX,3)
180$(call gb_Helper_abbreviate_dirs,\
181 mkdir -p $(dir $(1)) && \
182 mkdir -p $(dir $(call gb_CxxObject_get_dep_target,$(2))) && \

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

203 OOO:\dORIGIN:\dORIGIN/../ure-link/lib \
204 BRAND:\dORIGIN:\dORIGIN/../basis-link/program:\dORIGIN/../basis-link/ure-link/lib \
205 SDKBIN:\dORIGIN/../../ure-link/lib \
206 NONEBIN:\dORIGIN/../lib:\dORIGIN \
207
208gb_LinkTarget_CFLAGS := $(gb_CFLAGS) $(gb_CFLAGS_WERROR) $(gb_COMPILEROPTFLAGS)
209gb_LinkTarget_CXXFLAGS := $(gb_CXXFLAGS) $(gb_CXXFLAGS_WERROR)
210
182
183# CxxObject class
184
185define gb_CxxObject__command
186$(call gb_Output_announce,$(2),$(true),CXX,3)
187$(call gb_Helper_abbreviate_dirs,\
188 mkdir -p $(dir $(1)) && \
189 mkdir -p $(dir $(call gb_CxxObject_get_dep_target,$(2))) && \

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

210 OOO:\dORIGIN:\dORIGIN/../ure-link/lib \
211 BRAND:\dORIGIN:\dORIGIN/../basis-link/program:\dORIGIN/../basis-link/ure-link/lib \
212 SDKBIN:\dORIGIN/../../ure-link/lib \
213 NONEBIN:\dORIGIN/../lib:\dORIGIN \
214
215gb_LinkTarget_CFLAGS := $(gb_CFLAGS) $(gb_CFLAGS_WERROR) $(gb_COMPILEROPTFLAGS)
216gb_LinkTarget_CXXFLAGS := $(gb_CXXFLAGS) $(gb_CXXFLAGS_WERROR)
217
218ifeq ($(gb_DEBUGLEVEL),0)
219gb_LinkTarget_LDFLAGS += -Wl,-O1
220endif
221
222gb_DEBUG_CFLAGS := -ggdb3 -finline-limit=0 -fno-inline -fno-default-inline
223
211ifeq ($(gb_DEBUGLEVEL),2)
212gb_LinkTarget_CXXFLAGS += -ggdb3 -finline-limit=0 -fno-inline -fno-default-inline
213gb_LinkTarget_CFLAGS += -ggdb3 -finline-limit=0 -fno-inline -fno-default-inline
214
215endif
216
217gb_LinkTarget_INCLUDE := $(filter-out %/stl, $(subst -I. , ,$(SOLARINC)))
218gb_LinkTarget_INCLUDE_STL := $(filter %/stl, $(subst -I. , ,$(SOLARINC)))

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

304 $(foreach lib,$(gb_Library_RTLIBS),$(lib):OOO) \
305 $(foreach lib,$(gb_Library_RTVERLIBS),$(lib):URELIB) \
306 $(foreach lib,$(gb_Library_STLLIBS),$(lib):URELIB) \
307 $(foreach lib,$(gb_Library_UNOLIBS_URE),$(lib):URELIB) \
308 $(foreach lib,$(gb_Library_UNOLIBS_OOO),$(lib):OOO) \
309 $(foreach lib,$(gb_Library_UNOVERLIBS),$(lib):URELIB) \
310
311define gb_Library_get_rpath
224ifeq ($(gb_DEBUGLEVEL),2)
225gb_LinkTarget_CXXFLAGS += -ggdb3 -finline-limit=0 -fno-inline -fno-default-inline
226gb_LinkTarget_CFLAGS += -ggdb3 -finline-limit=0 -fno-inline -fno-default-inline
227
228endif
229
230gb_LinkTarget_INCLUDE := $(filter-out %/stl, $(subst -I. , ,$(SOLARINC)))
231gb_LinkTarget_INCLUDE_STL := $(filter %/stl, $(subst -I. , ,$(SOLARINC)))

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

317 $(foreach lib,$(gb_Library_RTLIBS),$(lib):OOO) \
318 $(foreach lib,$(gb_Library_RTVERLIBS),$(lib):URELIB) \
319 $(foreach lib,$(gb_Library_STLLIBS),$(lib):URELIB) \
320 $(foreach lib,$(gb_Library_UNOLIBS_URE),$(lib):URELIB) \
321 $(foreach lib,$(gb_Library_UNOLIBS_OOO),$(lib):OOO) \
322 $(foreach lib,$(gb_Library_UNOVERLIBS),$(lib):URELIB) \
323
324define gb_Library_get_rpath
312'-Wl,-rpath,$(call gb_LinkTarget__get_rpath_for_layer,$(call gb_Library_get_layer,$(1)))' \
325-Wl,-z,origin '-Wl,-rpath,$(call gb_LinkTarget__get_rpath_for_layer,$(call gb_Library_get_layer,$(1)))' \
313'-Wl,-rpath-link,$(gb_Library_OUTDIRLOCATION)'
314endef
315
316define gb_Library_Library_platform
317$(call gb_LinkTarget_get_target,$(2)) : RPATH := $(call gb_Library_get_rpath,$(1))
318
319endef
320

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

404
405
406# ComponentTarget
407
408gb_XSLTPROCPRECOMMAND := LD_LIBRARY_PATH=$(OUTDIR)/lib
409gb_Library_COMPONENTPREFIXES := \
410 OOO:vnd.sun.star.expand:\dOOO_BASE_DIR/program/ \
411 URELIB:vnd.sun.star.expand:\dURE_INTERNAL_LIB_DIR/ \
326'-Wl,-rpath-link,$(gb_Library_OUTDIRLOCATION)'
327endef
328
329define gb_Library_Library_platform
330$(call gb_LinkTarget_get_target,$(2)) : RPATH := $(call gb_Library_get_rpath,$(1))
331
332endef
333

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

417
418
419# ComponentTarget
420
421gb_XSLTPROCPRECOMMAND := LD_LIBRARY_PATH=$(OUTDIR)/lib
422gb_Library_COMPONENTPREFIXES := \
423 OOO:vnd.sun.star.expand:\dOOO_BASE_DIR/program/ \
424 URELIB:vnd.sun.star.expand:\dURE_INTERNAL_LIB_DIR/ \
425 NONE:vnd.sun.star.expand:\dOOO_INBUILD_SHAREDLIB_DIR/ \
412
426
427# UnoApiTarget
428
429gb_UnoApiTarget_IDLCTARGET := $(OUTDIR)/bin/idlc
430gb_UnoApiTarget_IDLCCOMMAND := LD_LIBRARY_PATH=$(OUTDIR)/lib SOLARBINDIR=$(OUTDIR)/bin $(gb_UnoApiTarget_IDLCTARGET)
431gb_UnoApiTarget_REGMERGETARGET := $(OUTDIR)/bin/regmerge
432gb_UnoApiTarget_REGMERGECOMMAND := LD_LIBRARY_PATH=$(OUTDIR)/lib SOLARBINDIR=$(OUTDIR)/bin $(gb_UnoApiTarget_REGMERGETARGET)
433gb_UnoApiTarget_REGCOMPARETARGET := $(OUTDIR)/bin/regcompare
434gb_UnoApiTarget_REGCOMPARECOMMAND := LD_LIBRARY_PATH=$(OUTDIR)/lib SOLARBINDIR=$(OUTDIR)/bin $(gb_UnoApiTarget_REGCOMPARETARGET)
435gb_UnoApiTarget_CPPUMAKERTARGET := $(OUTDIR)/bin/cppumaker
436gb_UnoApiTarget_CPPUMAKERCOMMAND := LD_LIBRARY_PATH=$(OUTDIR)/lib SOLARBINDIR=$(OUTDIR)/bin $(gb_UnoApiTarget_CPPUMAKERTARGET)
437gb_UnoApiTarget_REGVIEWTARGET := $(OUTDIR)/bin/regview
438gb_UnoApiTarget_REGVIEWCOMMAND := LD_LIBRARY_PATH=$(OUTDIR)/lib SOLARBINDIR=$(OUTDIR)/bin $(gb_UnoApiTarget_REGVIEWTARGET)
413
414# vim: set noet sw=4 ts=4:
439
440# vim: set noet sw=4 ts=4: