freebsd.mk (d59d07b5) freebsd.mk (e3393df0)
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

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

87 -Wshadow \
88 -fPIC \
89 -fmessage-length=0 \
90 -fno-common \
91 -fno-strict-aliasing \
92 -fno-use-cxa-atexit \
93 -fvisibility-inlines-hidden \
94 -fvisibility=hidden \
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

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

87 -Wshadow \
88 -fPIC \
89 -fmessage-length=0 \
90 -fno-common \
91 -fno-strict-aliasing \
92 -fno-use-cxa-atexit \
93 -fvisibility-inlines-hidden \
94 -fvisibility=hidden \
95 -std=gnu++98 \
95 -pipe
96ifeq ($(COM),CLANG)
97gb_CXXFLAGS += -DHAVE_STL_INCLUDE_PATH
98else
99gb_CXXFLAGS += -DBOOST_TR1_DISABLE_INCLUDE_NEXT -DBOOST_TR1_GCC_INCLUDE_PATH=c++
100endif
101
102ifneq ($(EXTERNAL_WARNINGS_NOT_ERRORS),TRUE)

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

137ifneq ($(HAVE_LD_BSYMBOLIC_FUNCTIONS),)
138gb_LinkTarget_LDFLAGS += \
139 -Wl,--dynamic-list-cpp-new \
140 -Wl,--dynamic-list-cpp-typeinfo \
141 -Wl,-Bsymbolic-functions \
142
143endif
144
96 -pipe
97ifeq ($(COM),CLANG)
98gb_CXXFLAGS += -DHAVE_STL_INCLUDE_PATH
99else
100gb_CXXFLAGS += -DBOOST_TR1_DISABLE_INCLUDE_NEXT -DBOOST_TR1_GCC_INCLUDE_PATH=c++
101endif
102
103ifneq ($(EXTERNAL_WARNINGS_NOT_ERRORS),TRUE)

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

138ifneq ($(HAVE_LD_BSYMBOLIC_FUNCTIONS),)
139gb_LinkTarget_LDFLAGS += \
140 -Wl,--dynamic-list-cpp-new \
141 -Wl,--dynamic-list-cpp-typeinfo \
142 -Wl,-Bsymbolic-functions \
143
144endif
145
146ifneq ($(filter $(CPUNAME),INTEL X86_64),)
147gb_CFLAGS += -fstack-protector
148gb_CXXFLAGS += -fstack-protector
149gb_LinkTarget_LDFLAGS += -fstack-protector
150endif
151
145ifeq ($(gb_DEBUGLEVEL),2)
146gb_COMPILEROPTFLAGS := -O0
147gb_COMPILEROPT1FLAGS := -O0
148else
149# Clang versions 3.6.x and 3.7.x generate bad DWARF CFI for stack unwinding
150# on 32-bit Intel when compiling with -Os optimization. See
151# <https://llvm.org/bugs/show_bug.cgi?id=24792>
152# Work around this by using "-O2 -fno-unroll-loops" instead.

--- 326 unchanged lines hidden ---
152ifeq ($(gb_DEBUGLEVEL),2)
153gb_COMPILEROPTFLAGS := -O0
154gb_COMPILEROPT1FLAGS := -O0
155else
156# Clang versions 3.6.x and 3.7.x generate bad DWARF CFI for stack unwinding
157# on 32-bit Intel when compiling with -Os optimization. See
158# <https://llvm.org/bugs/show_bug.cgi?id=24792>
159# Work around this by using "-O2 -fno-unroll-loops" instead.

--- 326 unchanged lines hidden ---