summaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2021-03-23 05:55:07 -0400
committerJeffrey Walton <noloader@gmail.com>2021-03-23 05:55:07 -0400
commita70662dae83e1c7b779d6409d61c2bc905c0bac0 (patch)
tree32b163107aa8f7be4a8ed1b1a696da4ca2c4a5aa /GNUmakefile
parentf6a27923535c13ddca9e2a2213ebecc44255bcc1 (diff)
downloadcryptopp-git-a70662dae83e1c7b779d6409d61c2bc905c0bac0.tar.gz
Add -fno-common for Darwin builds
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 97baedd6..a7368b67 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -155,6 +155,9 @@ endif
ifneq ($(IS_DARWIN),0)
CXX ?= c++
# CRYPTOPP_CXXFLAGS += -stdlib=libc++
+ ifeq ($(findstring -fno-common,$(CXXFLAGS)),)
+ CRYPTOPP_CXXFLAGS += -fno-common
+ endif
IS_APPLE_LIBTOOL=$(shell libtool -V 2>&1 | $(GREP) -i -c 'Apple')
ifeq ($(IS_APPLE_LIBTOOL),1)
AR = libtool