freebsd.mk (8969592b) freebsd.mk (71df68dc)
1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2011 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#

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

103 -pipe \
104
105ifneq ($(EXTERNAL_WARNINGS_NOT_ERRORS),TRUE)
106gb_CFLAGS_WERROR := -Werror
107gb_CXXFLAGS_WERROR := -Werror
108endif
109
110ifneq ($(strip $(SYSBASE)),)
1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2011 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#

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

103 -pipe \
104
105ifneq ($(EXTERNAL_WARNINGS_NOT_ERRORS),TRUE)
106gb_CFLAGS_WERROR := -Werror
107gb_CXXFLAGS_WERROR := -Werror
108endif
109
110ifneq ($(strip $(SYSBASE)),)
111#gb_CXXFLAGS += --sysroot=$(SYSBASE)
112#gb_CFLAGS += --sysroot=$(SYSBASE)
111gb_CXXFLAGS += --sysroot=$(SYSBASE)
112gb_CFLAGS += --sysroot=$(SYSBASE)
113gb_LinkTarget_LDFLAGS := -Wl,--sysroot=$(SYSBASE)
113endif
114gb_LinkTarget_EXCEPTIONFLAGS := \
115 -DEXCEPTIONS_ON \
116 -fexceptions \
117 -fno-enforce-eh-specs \
118
119gb_LinkTarget_NOEXCEPTIONFLAGS := \
120 -DEXCEPTIONS_OFF \
121 -fno-exceptions \
122
114endif
115gb_LinkTarget_EXCEPTIONFLAGS := \
116 -DEXCEPTIONS_ON \
117 -fexceptions \
118 -fno-enforce-eh-specs \
119
120gb_LinkTarget_NOEXCEPTIONFLAGS := \
121 -DEXCEPTIONS_OFF \
122 -fno-exceptions \
123
123gb_LinkTarget_LDFLAGS := \
124 -Wl,-rpath-link=$(SOLARLIBDIR):$(SYSBASE)/lib:$(SYSBASE)/usr/lib:$(SYSBASE)/usr/local/lib \
124gb_LinkTarget_LDFLAGS += \
125 -Wl,-rpath-link,$(SYSBASE)/lib:$(SYSBASE)/usr/lib \
125 -Wl,-z,combreloc \
126 -Wl,-z,defs \
127 $(subst -L../lib , ,$(SOLARLIB)) \
128
129ifeq ($(HAVE_LD_HASH_STYLE),TRUE)
130gb_LinkTarget_LDFLAGS += \
131 -Wl,--hash-style=both \
132

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

300 $(foreach lib,$(gb_Library_RTLIBS),$(lib):OOO) \
301 $(foreach lib,$(gb_Library_RTVERLIBS),$(lib):URELIB) \
302 $(foreach lib,$(gb_Library_STLLIBS),$(lib):URELIB) \
303 $(foreach lib,$(gb_Library_UNOLIBS_URE),$(lib):URELIB) \
304 $(foreach lib,$(gb_Library_UNOLIBS_OOO),$(lib):OOO) \
305 $(foreach lib,$(gb_Library_UNOVERLIBS),$(lib):URELIB) \
306
307define gb_Library_get_rpath
126 -Wl,-z,combreloc \
127 -Wl,-z,defs \
128 $(subst -L../lib , ,$(SOLARLIB)) \
129
130ifeq ($(HAVE_LD_HASH_STYLE),TRUE)
131gb_LinkTarget_LDFLAGS += \
132 -Wl,--hash-style=both \
133

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

301 $(foreach lib,$(gb_Library_RTLIBS),$(lib):OOO) \
302 $(foreach lib,$(gb_Library_RTVERLIBS),$(lib):URELIB) \
303 $(foreach lib,$(gb_Library_STLLIBS),$(lib):URELIB) \
304 $(foreach lib,$(gb_Library_UNOLIBS_URE),$(lib):URELIB) \
305 $(foreach lib,$(gb_Library_UNOLIBS_OOO),$(lib):OOO) \
306 $(foreach lib,$(gb_Library_UNOVERLIBS),$(lib):URELIB) \
307
308define gb_Library_get_rpath
308-Wl,-z,origin -Wl,-rpath,'$(call gb_LinkTarget__get_rpath_for_layer,$(call gb_Library_get_layer,$(1)))' \
309-Wl,-rpath-link,'$(gb_Library_OUTDIRLOCATION)'
309'-Wl,-rpath,$(call gb_LinkTarget__get_rpath_for_layer,$(call gb_Library_get_layer,$(1)))' \
310'-Wl,-rpath-link,$(gb_Library_OUTDIRLOCATION)'
310endef
311
312define gb_Library_Library_platform
313$(call gb_LinkTarget_get_target,$(2)) : RPATH := $(call gb_Library_get_rpath,$(1))
314
315endef
316
317

--- 93 unchanged lines hidden ---
311endef
312
313define gb_Library_Library_platform
314$(call gb_LinkTarget_get_target,$(2)) : RPATH := $(call gb_Library_get_rpath,$(1))
315
316endef
317
318

--- 93 unchanged lines hidden ---