Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/auriamg/macdylibbundler.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Schmidt <git@ryandesign.com>2021-08-01 04:32:55 +0300
committerGitHub <noreply@github.com>2021-08-01 04:32:55 +0300
commit6a66195d348e42097d06688a1b60cd61972d0a1f (patch)
tree11a2e14eac2134800a79ce497a8caeeb7b0ecf6c
parent69190453741f8f92cb4cd35ef65e6916cdb272e6 (diff)
Allow user to set CXXFLAGS without losing -std
Allow the user to set the CXXFLAGS environment variable (for example to specify different optimization flags) while not losing flags necessary to build (-std=c++11).
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index df8c440..1dd957a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
DESTDIR=
PREFIX=/usr/local
-CXXFLAGS=-O2 -std=c++11
+CXXFLAGS?=-O2
+CXXFLAGS+=-std=c++11
CPP_FILES=$(wildcard src/*.cpp)
OBJ_FILES=$(notdir $(CPP_FILES:.cpp=.o))