freebsd.mk (a8e4828d) freebsd.mk (908225ed)
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

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

91 -fPIC \
92 -fmessage-length=0 \
93 -fno-common \
94 -fno-strict-aliasing \
95 -fno-use-cxa-atexit \
96 -fvisibility-inlines-hidden \
97 -fvisibility=hidden \
98 -pipe \
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

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

91 -fPIC \
92 -fmessage-length=0 \
93 -fno-common \
94 -fno-strict-aliasing \
95 -fno-use-cxa-atexit \
96 -fvisibility-inlines-hidden \
97 -fvisibility=hidden \
98 -pipe \
99 -DHAVE_STL_INCLUDE_PATH \
99
100ifneq ($(EXTERNAL_WARNINGS_NOT_ERRORS),TRUE)
101gb_CFLAGS_WERROR := -Werror
102gb_CXXFLAGS_WERROR := -Werror
103endif
104
105ifneq ($(strip $(SYSBASE)),)
106gb_CXXFLAGS += --sysroot=$(SYSBASE)
107gb_CFLAGS += --sysroot=$(SYSBASE)
108gb_LinkTarget_LDFLAGS := -Wl,--sysroot=$(SYSBASE)
109endif
110gb_LinkTarget_EXCEPTIONFLAGS := \
111 -DEXCEPTIONS_ON \
112 -fexceptions \
100
101ifneq ($(EXTERNAL_WARNINGS_NOT_ERRORS),TRUE)
102gb_CFLAGS_WERROR := -Werror
103gb_CXXFLAGS_WERROR := -Werror
104endif
105
106ifneq ($(strip $(SYSBASE)),)
107gb_CXXFLAGS += --sysroot=$(SYSBASE)
108gb_CFLAGS += --sysroot=$(SYSBASE)
109gb_LinkTarget_LDFLAGS := -Wl,--sysroot=$(SYSBASE)
110endif
111gb_LinkTarget_EXCEPTIONFLAGS := \
112 -DEXCEPTIONS_ON \
113 -fexceptions \
113 -fno-enforce-eh-specs \
114
115gb_LinkTarget_NOEXCEPTIONFLAGS := \
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)) \
114
115gb_LinkTarget_NOEXCEPTIONFLAGS := \
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 ${FBSD_LDFLAGS} \
124 \
125
126ifeq ($(HAVE_LD_HASH_STYLE),TRUE)
127gb_LinkTarget_LDFLAGS += \
128 -Wl,--hash-style=both \
129
130endif
131

--- 309 unchanged lines hidden ---
125 \
126
127ifeq ($(HAVE_LD_HASH_STYLE),TRUE)
128gb_LinkTarget_LDFLAGS += \
129 -Wl,--hash-style=both \
130
131endif
132

--- 309 unchanged lines hidden ---