diff options
author | midipix <writeonce@midipix.org> | 2018-12-19 21:05:18 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-12-19 22:12:13 -0500 |
commit | 577c059b69754409fa0f75d89f51d54729396106 (patch) | |
tree | e44c007095ce48e8c566f5f83e44dc9197512f8c /project | |
parent | 84f4cdf481cec9be61f4fb2acb99642ae9b66bcc (diff) | |
download | sbpython3-577c059b69754409fa0f75d89f51d54729396106.tar.bz2 sbpython3-577c059b69754409fa0f75d89f51d54729396106.tar.xz |
project: static config: specify all extension dependencies in cfgdefs.sh.
Diffstat (limited to 'project')
-rw-r--r-- | project/config/cfgdefs.sh | 16 | ||||
-rw-r--r-- | project/depends.mk | 2 |
2 files changed, 16 insertions, 2 deletions
diff --git a/project/config/cfgdefs.sh b/project/config/cfgdefs.sh index eb58356..2db66e4 100644 --- a/project/config/cfgdefs.sh +++ b/project/config/cfgdefs.sh @@ -252,6 +252,22 @@ cfgdefs_perform_target_tests() mb_cfgtest_makevar='LDFLAGS_DBM_STATIC' cfgtest_makevar_append '$(LDFLAGS_DBM)' + # static python library switches + cfgtest_newline + cfgtest_comment 'static python library switches' + mb_cfgtest_makevar='LDFLAGS_PYEXT_STATIC' + + cfgtest_makevar_append '-Wl,--as-needed -lssl -lcrypto -Wl,--no-as-needed' + cfgtest_makevar_append '-Wl,--as-needed -lbz2 -Wl,--no-as-needed' + cfgtest_makevar_append '-Wl,--as-needed -lffi -Wl,--no-as-needed' + cfgtest_makevar_append '-Wl,--as-needed -lgdbm -Wl,--no-as-needed' + cfgtest_makevar_append '-Wl,--as-needed -lreadline -Wl,--no-as-needed' + cfgtest_makevar_append '-Wl,--as-needed -lintl -Wl,--no-as-needed' + cfgtest_makevar_append '-Wl,--as-needed -lz -Wl,--no-as-needed' + + [ $python_major = '3' ] && \ + cfgtest_makevar_append '-Wl,--as-needed -lzma -Wl,--no-as-needed' + # pretty cfgdefs.mk cfgtest_newline } diff --git a/project/depends.mk b/project/depends.mk index 4b0e3d1..54b3373 100644 --- a/project/depends.mk +++ b/project/depends.mk @@ -3,6 +3,4 @@ CFLAGS_TCLTK += -DWITH_APPINIT LDFLAGS_TCLTK += $(LDFLAGS_TCLTK_LIBS) # static extensions: dependency switch -LDFLAGS_PYEXT_STATIC += -lssl -lcrypto -lgdbm -lreadline -LDFLAGS_PYEXT_STATIC += -lbz2 -lffi -lintl -llzma -lz LDFLAGS_TCLTK_STATIC += $(LDFLAGS_TCLTK) |