add no_fPIC option

This commit is contained in:
dzaima 2022-06-03 23:25:03 +03:00
parent acd655af09
commit 6cf29586db

View File

@ -50,7 +50,10 @@ OUTPUT := BQN
ifeq ($(i_SHARED),1)
i_PIE := -shared
SHARED_CCFLAGS := -fPIC -DCBQN_SHARED
SHARED_CCFLAGS := -DCBQN_SHARED
ifneq ($(no_fPIC),1)
SHARED_CCFLAGS += -fPIC
endif
else
SHARED_CCFLAGS :=
endif