* harbour/config/bsd/gcc.mk
* harbour/config/bin.mk
* harbour/config/hpux/gcc.mk
* harbour/config/darwin/gcc.mk
* harbour/config/linux/gcc.mk
* harbour/config/linux/icc.mk
* harbour/config/linux/global.mk
* harbour/config/linux/sunpro.mk
* harbour/config/rules.mk
* harbour/config/os2/gcc.mk
* harbour/config/sunos/gcc.mk
* harbour/config/sunos/sunpro.mk
! replaced wrongly used 'findstring' functions with 'filter' functions
* harbour/config/linux/global.mk
* enable -fPIC for all non x86@32 GCC and ICC Linux builds
27 lines
537 B
Makefile
27 lines
537 B
Makefile
#
|
|
# $Id$
|
|
#
|
|
|
|
all : first
|
|
|
|
BIN_EXT :=
|
|
|
|
HB_GT_LIBS += gttrm
|
|
|
|
ifeq ($(HB_SHELL),sh)
|
|
ifneq ($(filter $(HB_COMPILER),gcc icc),)
|
|
ifeq ($(filter -fPIC,$(HB_USER_CFLAGS)),)
|
|
ifeq ($(filter -fpic,$(HB_USER_CFLAGS)),)
|
|
_UNAME_M := $(shell uname -m)
|
|
ifeq ($(findstring 86,$(_UNAME_M)),)
|
|
HB_CFLAGS += -fPIC
|
|
else
|
|
ifneq ($(findstring 64,$(_UNAME_M)),)
|
|
HB_CFLAGS += -fPIC
|
|
endif
|
|
endif
|
|
endif
|
|
endif
|
|
endif
|
|
endif
|