diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-10-30 11:09:24 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-10-30 11:09:24 +0000 |
commit | f1480089f1c61fe66122368c7e436ba741881c87 (patch) | |
tree | 551b809bdc52afdcace4d631c491279d4eac7d7b /Makefile | |
parent | 63da79c0bfd51770b7dd3eda7140741b4feb1d3e (diff) | |
download | s6-linux-utils-f1480089f1c61fe66122368c7e436ba741881c87.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 |