diff options
author | midipix <writeonce@midipix.org> | 2018-12-02 09:37:39 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-12-02 19:48:58 -0500 |
commit | 3d0b33e464a87705d880a55991f4562a0a16eef9 (patch) | |
tree | 09700c4ed845318ffdb61e89028d4b7e8643ab26 /project | |
parent | f0663f4ef1f428769f4557dfd24f22cdd0281c0e (diff) | |
download | sbpython2-3d0b33e464a87705d880a55991f4562a0a16eef9.tar.bz2 sbpython2-3d0b33e464a87705d880a55991f4562a0a16eef9.tar.xz |
project: properly support an all-static python executable.
Diffstat (limited to 'project')
-rw-r--r-- | project/common.mk | 1 | ||||
-rw-r--r-- | project/extras.mk | 18 |
2 files changed, 18 insertions, 1 deletions
diff --git a/project/common.mk b/project/common.mk index ba3493c..3f2a355 100644 --- a/project/common.mk +++ b/project/common.mk @@ -141,7 +141,6 @@ APP_SRCS = \ Modules/python.c \ COMMON_SRCS = \ - $(DYNLOAD_SRCS) \ $(CONFIG_SRCS) \ $(MODULE_SRCS) \ $(OBJECT_SRCS) \ diff --git a/project/extras.mk b/project/extras.mk index 94dcde9..6e20198 100644 --- a/project/extras.mk +++ b/project/extras.mk @@ -10,6 +10,24 @@ CFLAGS_CONFIG += -DEXEC_PREFIX=\"$(EXEC_PREFIX)\" CFLAGS_CONFIG += -DVPATH=\"$(SOURCE_DIR)\" CFLAGS_CONFIG += -DPYTHONPATH=\"$(PYTHON_PATH)\" +ifeq ($(ALL_STATIC),yes) + CFLAGS_STATIC += -I$(PROJECT_DIR)/src/static + CFLAGS_STATIC += -DPY_ALL_STATIC + + LDFLAGS_STATIC += $(PYEXT_SUBSET_STATIC) + + LDFLAGS_STATIC += $(LDFLAGS_PYEXT_STATIC) + + LDFLAGS_STATIC += $(LDFLAGS_NCURSES_STATIC) + LDFLAGS_STATIC += $(LDFLAGS_SQLITE_STATIC) + LDFLAGS_STATIC += $(LDFLAGS_EXPAT_STATIC) + LDFLAGS_STATIC += $(LDFLAGS_DBM_STATIC) + + LDFLAGS_STATIC += $(LDFLAGS_PYEXT_STATIC) +else + COMMON_SRCS += $(DYNLOAD_SRCS) + CFLAGS_CONFIG += -DHAVE_DYNAMIC_LOADING +endif # dynamically loaded extension module pyext/%$(OS_LIB_SUFFIX): LDFLAGS_SONAME = |