Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
remove CC filter for CFLAGS
Browse files Browse the repository at this point in the history
- allows to use compiler wrappers
- fixes make CC=/path/to/cc
- fixes Issue 15012
- still can be overriden with make CFLAGS=
  • Loading branch information
MartinNowak committed Sep 6, 2015
1 parent 46fdff3 commit 7b1a611
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions posix.mak
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,14 @@ endif
DDOCFLAGS=-conf= -c -w -o- -Isrc -Iimport -version=CoreDdoc

# Set CFLAGS
CFLAGS=
ifneq (,$(filter cc% gcc% clang% icc% egcc%, $(CC)))
CFLAGS += $(MODEL_FLAG) -fPIC -DHAVE_UNISTD_H
ifeq ($(BUILD),debug)
CFLAGS += -g
else
CFLAGS += -O3
endif
CFLAGS=$(MODEL_FLAG) -fPIC -DHAVE_UNISTD_H
ifeq ($(BUILD),debug)
CFLAGS += -g
else
CFLAGS += -O3
endif
ifeq (solaris,$(OS))
CFLAGS+=-D_REENTRANT # for thread-safe errno
CFLAGS+=-D_REENTRANT # for thread-safe errno
endif

# Set DFLAGS
Expand Down

0 comments on commit 7b1a611

Please sign in to comment.