Skip to content

Commit d681877

Browse files
authored
Make sure that -fPIC is present if needed
1 parent 5bd21ab commit d681877

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

exports/Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ TOPDIR = ..
22

33
include ../Makefile.system
44

5+
ifdef NEED_PIC
6+
ifeq (,$(findstring PIC,$(CFLAGS)))
7+
CFLAGS+= -fPIC
8+
endif
9+
endif
10+
511
ifndef EXPRECISION
612
EXPRECISION = 0
713
endif

0 commit comments

Comments
 (0)