diff options
author | bloodstalker <thabogre@gmail.com> | 2019-11-28 07:26:10 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2019-11-28 07:26:10 +0000 |
commit | 4e12b7abb2eca7e0d528cf90f5e66a26da861c00 (patch) | |
tree | c336d20383b25726bf51b45905e6c2e7a5abaaaf | |
parent | fix (diff) | |
download | cgrep-4e12b7abb2eca7e0d528cf90f5e66a26da861c00.tar.gz cgrep-4e12b7abb2eca7e0d528cf90f5e66a26da861c00.zip |
fix
-rw-r--r-- | makefile | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -3,13 +3,21 @@ SHELL=bash SHELL?=bash CC=clang CC?=clang -CFLAGS=-fpic -std=c11 +ifdef OS + CFLAGS=-std=c11 +else + CFLAGS=-fpic -std=c11 +endif CXX=clang++ CXX?=clang++ -CXX_FLAGS=-fpic +ifdef OS + CXX_FLAGS= +else + CXX_FLAGS=-fpic +endif CXX_EXTRA?= CTAGS_I_PATH?=./ -LD_FLAGS= +LD_FLAGS= -lstdc++fs EXTRA_LD_FLAGS?= ADD_SANITIZERS_CC= -g -fsanitize=address -fno-omit-frame-pointer ADD_SANITIZERS_LD= -g -fsanitize=address |