version 1.34, 2008/12/02 09:00:01
|
version 1.34.8.1, 2013/06/03 22:34:47
|
|
|
include $(ROOT)/mak/program-unix.mak | include $(ROOT)/mak/program-unix.mak |
# GCC supports the -fPIE switch in version 3.4 or later | # GCC supports the -fPIE switch in version 3.4 or later |
ifeq ($(OS),linux) | ifeq ($(OS),linux) |
|
ifeq ($(COMPILER), gnu) |
ifeq ($(shell expr $(GCC_VERSION) '>=' 3.4), 1) | ifeq ($(shell expr $(GCC_VERSION) '>=' 3.4), 1) |
FLAGS := $(FLAGS:-fPIC=-fPIE) | FLAGS := $(FLAGS:-fPIC=-fPIE) |
endif | endif |
|
else |
|
FLAGS:= $(FLAGS:-fpic=-fpie) |
|
endif |
endif | endif |
endif | endif |
ifeq ($(OS_TYPE),vms) | ifeq ($(OS_TYPE),vms) |