diff options
Diffstat (limited to 'Rules.mak')
-rw-r--r-- | Rules.mak | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -191,7 +191,7 @@ ifeq ($(strip $(TARGET_ARCH)),frv) CPU_LDFLAGS-$(CONFIG_FRV)+=-melf32frvfd CPU_CFLAGS-$(CONFIG_FRV)+=-mfdpic PICFLAG=-fPIC -DPIC - PIEFLAG=$(call check_gcc,-fpie,) + PIEFLAG=-fpie # Using -pie causes the program to have an interpreter, which is # forbidden, so we must make do with -shared. Unfortunately, # -shared by itself would get us global function descriptors @@ -251,7 +251,7 @@ endif # Sigh, some stupid versions of gcc can't seem to cope with '-iwithprefix include' #CFLAGS+=-iwithprefix include -CFLAGS+=$(shell $(CC) -print-search-dirs | sed -ne "s/install: *\(.*\)/-I\1include/gp") +CFLAGS+=-isystem $(shell $(CC) -print-file-name=include) ifneq ($(DOASSERTS),y) CFLAGS += -DNDEBUG |