Skip to content

Commit 6cdb554

Browse files
committed
Add -fPIC to the static library
This is already done for the dynamic library but not for the static one
1 parent e573d4d commit 6cdb554

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ $(eval $(call c_program,xxhsum_inlinedXXH,$(CLI_OBJS)))
139139
# =================================================
140140
# library
141141

142+
ifeq (,$(filter Windows%,$(OS)))
143+
libxxhash.a: CFLAGS += -fPIC
144+
endif
142145
libxxhash.a:
143146
$(eval $(call static_library,libxxhash.a,xxhash.o))
144147

0 commit comments

Comments
 (0)