version 1.34, 2008/12/02 09:00:01
|
version 1.35, 2012/07/26 11:14:52
|
|
|
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) |