Skip to content

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 7aaf7c7 commit 0bfc7ca
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions posix.mak
Expand Up @@ -92,14 +92,11 @@ else
endif

# 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

# Set DFLAGS
Expand Down

0 comments on commit 0bfc7ca

Please sign in to comment.