From 577c059b69754409fa0f75d89f51d54729396106 Mon Sep 17 00:00:00 2001 From: midipix Date: Wed, 19 Dec 2018 21:05:18 -0500 Subject: project: static config: specify all extension dependencies in cfgdefs.sh. --- project/config/cfgdefs.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'project/config') 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 } -- cgit v1.2.3