summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-10-18 00:35:10 +1100
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-10-18 00:35:10 +1100
commit8ef0b871725cf6fe31ceab34ae0b40aa905e05bf (patch)
tree540120c41e9e39da4dd059bc262f07125b41a170
parent6632e63fd6acdba8138b3232ef2a87bedfedab81 (diff)
add position independent flag for shared lib
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8dc73e2..6ef7a24 100644
--- a/Makefile
+++ b/Makefile
@@ -36,7 +36,7 @@ ifeq ($(UNAME_S),Darwin)
OBJS += $(OBJ_DIR)/backend_mtl.o
else
SHARED_LIB := $(BUILD_DIR)/libceleritas.so
- SHARED_FLAGS := -shared
+ SHARED_FLAGS := -shared -fPIC
endif
## Makefile notes