summaryrefslogtreecommitdiff
path: root/project/extras.mk
diff options
context:
space:
mode:
Diffstat (limited to 'project/extras.mk')
-rw-r--r--project/extras.mk15
1 files changed, 15 insertions, 0 deletions
diff --git a/project/extras.mk b/project/extras.mk
index e76c55d..8962e1b 100644
--- a/project/extras.mk
+++ b/project/extras.mk
@@ -8,3 +8,18 @@ CFLAGS_CONFIG += -DPREFIX=\"$(PREFIX)\"
CFLAGS_CONFIG += -DEXEC_PREFIX=\"$(EXEC_PREFIX)\"
CFLAGS_CONFIG += -DVPATH=\"$(SOURCE_DIR)\"
CFLAGS_CONFIG += -DPYTHONPATH=\"$(PYTHON_PATH)\"
+
+# python's front-end utility
+LDFLAGS_DEPS += -Wl,--as-needed
+LDFLAGS_DEPS += -lm -lpthread -lutil -ldl -lcrypt
+LDFLAGS_DEPS += -Wl,--no-as-needed
+
+LDFLAGS_CONFIG += $(LDFLAGS_DEPS)
+LDFLAGS_CONFIG += -Wl,-rpath -Wl,$(LIBDIR)
+
+ifeq ($(ALL_STATIC),yes)
+ CFLAGS_STATIC += -DPY_ALL_STATIC
+else
+ COMMON_SRCS += $(DYNLOAD_SRCS)
+ CFLAGS_CONFIG += -DHAVE_DYNAMIC_LOADING -DSOABI=\"$(PYTHON_SOABI)\"
+endif