about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-10-30 11:09:29 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-10-30 11:09:29 +0000
commit74f8514a347f465bd169a20514cf70f8f9cfc721 (patch)
tree29043c3426383912f9bff4adad8f6743b81f42ad /Makefile
parent95ace82d4d984b6a9a654e6d8fb2e410b144d8b7 (diff)
downloads6-portable-utils-74f8514a347f465bd169a20514cf70f8f9cfc721.tar.gz
s6-portable-utils-74f8514a347f465bd169a20514cf70f8f9cfc721.tar.xz
s6-portable-utils-74f8514a347f465bd169a20514cf70f8f9cfc721.zip
Make all-pic a user option
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
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