diff options
author | midipix <writeonce@midipix.org> | 2018-12-15 17:59:23 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-12-18 20:38:39 -0500 |
commit | f8777f11ecb0ecb317a4a503eb740b5224214d6a (patch) | |
tree | 0c947e3528fbb2cddb8fe52bf3c657704ea53e35 | |
parent | 8d7c97df868450dc39d376d2374a4c9dff4c842b (diff) | |
download | sbpython3-f8777f11ecb0ecb317a4a503eb740b5224214d6a.tar.bz2 sbpython3-f8777f11ecb0ecb317a4a503eb740b5224214d6a.tar.xz |
project: added rudimentary definitions for python's front-end utility.
-rw-r--r-- | config.project | 2 | ||||
-rw-r--r-- | project/extras.mk | 15 |
2 files changed, 16 insertions, 1 deletions
diff --git a/config.project b/config.project index f489c3b..ccda299 100644 --- a/config.project +++ b/config.project @@ -67,7 +67,7 @@ mb_default_elf_config_defs= # config mb_all_static= mb_all_shared=yes -mb_disable_frontend=yes +mb_disable_frontend=no mb_disable_static=yes mb_disable_shared=no 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 |