diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-10-30 11:09:13 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-10-30 11:09:13 +0000 |
commit | 83ce4c3d32a0f36e5b3957516eff9dbf679a756d (patch) | |
tree | 5c6eb0dbad51e3a1488d2fb6134b727554f1d1fc /Makefile | |
parent | 903265fd502541ae77327ccb5d72f5dc3626bb57 (diff) | |
download | bcnm-83ce4c3d32a0f36e5b3957516eff9dbf679a756d.tar.xz |
Make all-pic a user option
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -42,7 +42,11 @@ version_M := $(basename $(version_m)) version_l := $(basename $(version_M)) CPPFLAGS_ALL := $(CPPFLAGS_AUTO) $(CPPFLAGS) CFLAGS_ALL := $(CFLAGS_AUTO) $(CFLAGS) +ifeq ($(strip $(STATIC_LIBS_ARE_PIC)),) CFLAGS_SHARED := -fPIC +else +CFLAGS_SHARED := +endif LDFLAGS_ALL := $(LDFLAGS_AUTO) $(LDFLAGS) REALCC = $(CROSS_COMPILE)$(CC) AR := $(CROSS_COMPILE)ar |