Lines 22-30
Link Here
|
22 |
# We are under linux |
22 |
# We are under linux |
23 |
#CFLAGS = -DHB_OS_LINUX -Wall -std=gnu99 |
23 |
#CFLAGS = -DHB_OS_LINUX -Wall -std=gnu99 |
24 |
CFLAGS = -DHB_OS_LINUX -Wall -W -fsigned-char |
24 |
CFLAGS = -DHB_OS_LINUX -Wall -W -fsigned-char |
25 |
# uncomment this if you want to force relocateable code for .so libs |
|
|
26 |
# it's necessary on some platforms but can reduce performance |
27 |
#CFLAGS += -fPIC |
28 |
|
25 |
|
29 |
ifeq ($(HB_LEX),SIMPLEX) |
26 |
ifeq ($(HB_LEX),SIMPLEX) |
30 |
CFLAGS += -DSIMPLEX |
27 |
CFLAGS += -DSIMPLEX |
Lines 36-41
Link Here
|
36 |
CFLAGS+= -DHB_THREAD_SUPPORT -D_THREAD_SAFE |
33 |
CFLAGS+= -DHB_THREAD_SUPPORT -D_THREAD_SAFE |
37 |
endif |
34 |
endif |
38 |
else |
35 |
else |
|
|
36 |
# force relocateable code for .so libs |
37 |
# it's necessary on some platforms but can reduce performance |
38 |
ifeq ($(shell sh -c 'uname -m 2>/dev/null'),x86_64) |
39 |
USE_FPIC = yes |
40 |
endif |
41 |
ifeq ($(USE_FPIC),yes) |
42 |
CFLAGS += -fPIC |
43 |
endif |
39 |
#Add thread support to lib compilation only if compiling a _mt lib |
44 |
#Add thread support to lib compilation only if compiling a _mt lib |
40 |
ifeq ($(HB_LIBCOMP_MT),YES) |
45 |
ifeq ($(HB_LIBCOMP_MT),YES) |
41 |
CFLAGS+= -DHB_THREAD_SUPPORT -D_THREAD_SAFE |
46 |
CFLAGS+= -DHB_THREAD_SUPPORT -D_THREAD_SAFE |