summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-10-30 11:09:34 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-10-30 11:09:34 +0000
commit511f24c5b7ebfbf7549b54455948298c47c7e6c2 (patch)
treedc17bfa70edc7991ff837cad09b5c3c24e532730 /Makefile
parentb98b560ad3092f32e8a1e76090799ad843ff38f0 (diff)
downloads6-rc-511f24c5b7ebfbf7549b54455948298c47c7e6c2.tar.xz
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