diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-10-30 11:09:16 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-10-30 11:09:16 +0000 |
commit | 7dedbced950fa6d9c1a7fe88a584f6732ac0b9d6 (patch) | |
tree | 194892138a815b7c0c81d44bcd539b583172d93e /Makefile | |
parent | 9b859960944cf49fa9a4e74f10895c3663bbbac0 (diff) | |
download | s6-7dedbced950fa6d9c1a7fe88a584f6732ac0b9d6.tar.gz s6-7dedbced950fa6d9c1a7fe88a584f6732ac0b9d6.tar.xz s6-7dedbced950fa6d9c1a7fe88a584f6732ac0b9d6.zip |
Make all-pic a user option
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile index 259d624..610dbb6 100644 --- a/Makefile +++ b/Makefile @@ -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 |