Skip to content

Commit d03eaaf

Browse files
Separating the user-configurable CXXFLAGS from the built-in AM_CXXFLAGS
1 parent 5654d4f commit d03eaaf

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Makefile.am

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,11 @@ EXTRA_DIST = README.md
1818

1919
ACLOCAL_AMFLAGS = -I m4
2020

21-
CXXFLAGS = -Wall -Wextra -Wpedantic
22-
CXXFLAGS += -O3 -DNDEBUG
21+
# For thing we don't want users to override
22+
AM_CXXFLAGS = -Wall -Wextra -Wpedantic
23+
24+
# Users can override this; by default it would get -O2 -g
25+
CXXFLAGS = -O3 -DNDEBUG
2326

2427
lib_LIBRARIES = libsmithlab_cpp.a
2528

0 commit comments

Comments
 (0)