Skip to content

Commit

Permalink
config.mk: to_string(), introduced recently requires C++11
Browse files Browse the repository at this point in the history
  • Loading branch information
sighook committed Jan 14, 2024
1 parent 0eca0c0 commit c4f0c69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ BASHCOMPDIR = ${PREFIX}/share/bash-completion/completions
CPPFLAGS = -D_POSIX_SOURCE -D_GNU_SOURCE -D_LARGEFILE_SOURCE \
-D_FILE_OFFSET_BITS=64 -DNDEBUG -DVERSION=\"${VERSION}\"
ifeq (${DEBUG}, 1)
CXXFLAGS = -ggdb3 -fno-omit-frame-pointer -fsanitize=address \
CXXFLAGS = -std=c++11 -ggdb3 -fno-omit-frame-pointer -fsanitize=address \
-fsanitize=leak -fsanitize=undefined -fsanitize-recover=address
LDFLAGS = $(shell pkg-config --libs libarchive) ${CXXFLAGS} -lasan -lubsan
else
CXXFLAGS = -Wall -Wextra -pedantic -Wformat -Wformat-security \
CXXFLAGS = -std=c++11 -Wall -Wextra -pedantic -Wformat -Wformat-security \
-Wconversion -Wsign-conversion
LDFLAGS = -static $(shell pkg-config --libs --static libarchive)
endif

0 comments on commit c4f0c69

Please sign in to comment.