From 4e12b7abb2eca7e0d528cf90f5e66a26da861c00 Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Thu, 28 Nov 2019 10:56:10 +0330 Subject: fix --- makefile | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/makefile b/makefile index 5ffe346..f1374d8 100644 --- a/makefile +++ b/makefile @@ -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 -- cgit v1.2.3