linux.mk (9e1b801e) linux.mk (bcc22a4c)
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

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

17# specific language governing permissions and limitations
18# under the License.
19#
20#**************************************************************
21
22
23
24GUI := UNX
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

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

17# specific language governing permissions and limitations
18# under the License.
19#
20#**************************************************************
21
22
23
24GUI := UNX
25COM := GCC
26
27gb_MKTEMP := mktemp -t gbuild.XXXXXX
28
29gb_CC := gcc
30gb_CXX := g++
31gb_GCCP := gcc
32gb_AR := ar
33gb_AWK := awk

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

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 \
25
26gb_MKTEMP := mktemp -t gbuild.XXXXXX
27
28gb_CC := gcc
29gb_CXX := g++
30gb_GCCP := gcc
31gb_AR := ar
32gb_AWK := awk

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

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 \
113 -fexceptions \
114 -fno-enforce-eh-specs \
112 -fexceptions
113ifeq ($(COM),GCC)
114gb_LinkTarget_EXCEPTIONFLAGS += -fno-enforce-eh-specs
115endif
115
116gb_LinkTarget_NOEXCEPTIONFLAGS := \
117 -DEXCEPTIONS_OFF \
118 -fno-exceptions \
119
120gb_LinkTarget_LDFLAGS += \
121 -Wl,-rpath-link,$(SYSBASE)/lib:$(SYSBASE)/usr/lib \
122 -Wl,-z,combreloc \

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

136 -Wl,-Bsymbolic-functions \
137
138endif
139
140ifeq ($(gb_DEBUGLEVEL),0)
141gb_LinkTarget_LDFLAGS += -Wl,-O1
142endif
143
116
117gb_LinkTarget_NOEXCEPTIONFLAGS := \
118 -DEXCEPTIONS_OFF \
119 -fno-exceptions \
120
121gb_LinkTarget_LDFLAGS += \
122 -Wl,-rpath-link,$(SYSBASE)/lib:$(SYSBASE)/usr/lib \
123 -Wl,-z,combreloc \

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

137 -Wl,-Bsymbolic-functions \
138
139endif
140
141ifeq ($(gb_DEBUGLEVEL),0)
142gb_LinkTarget_LDFLAGS += -Wl,-O1
143endif
144
145ifeq ($(COM),CLANG)
144ifeq ($(ENABLE_SYMBOLS),SMALL)
146ifeq ($(ENABLE_SYMBOLS),SMALL)
147gb_DEBUG_CFLAGS := -ggdb1 -fno-inline
148else
149gb_DEBUG_CFLAGS := -ggdb3 -fno-inline
150endif
151else
152ifeq ($(ENABLE_SYMBOLS),SMALL)
145gb_DEBUG_CFLAGS := -ggdb1 -finline-limit=0 -fno-inline -fno-default-inline
146else
147gb_DEBUG_CFLAGS := -ggdb3 -finline-limit=0 -fno-inline -fno-default-inline
148endif
153gb_DEBUG_CFLAGS := -ggdb1 -finline-limit=0 -fno-inline -fno-default-inline
154else
155gb_DEBUG_CFLAGS := -ggdb3 -finline-limit=0 -fno-inline -fno-default-inline
156endif
157endif
149
150ifeq ($(gb_DEBUGLEVEL),2)
151gb_COMPILEROPTFLAGS := -O0
152else
153gb_COMPILEROPTFLAGS := -Os
154endif
155
156gb_COMPILERNOOPTFLAGS := -O0

--- 283 unchanged lines hidden ---
158
159ifeq ($(gb_DEBUGLEVEL),2)
160gb_COMPILEROPTFLAGS := -O0
161else
162gb_COMPILEROPTFLAGS := -Os
163endif
164
165gb_COMPILERNOOPTFLAGS := -O0

--- 283 unchanged lines hidden ---