From f41ab17352e41799d9f844680e1a9ab577efc072 Mon Sep 17 00:00:00 2001 From: midipix Date: Dec 20 2018 03:12:13 +0000 Subject: project: custom config: handle all tcl/tk-related bits at config-time. --- diff --git a/project/config/cfgdefs.sh b/project/config/cfgdefs.sh index 2db66e4..1d3014c 100644 --- a/project/config/cfgdefs.sh +++ b/project/config/cfgdefs.sh @@ -212,6 +212,12 @@ cfgdefs_perform_target_tests() mb_cfgtest_makevar='LDFLAGS_TCLTK_LIBS' cfgtest_makevar_append "$mb_tcltk_libs" + mb_cfgtest_makevar='CFLAGS_TCLTK' + cfgtest_makevar_append '-DWITH_APPINIT' + + mb_cfgtest_makevar='LDFLAGS_TCLTK' + cfgtest_makevar_append '$(LDFLAGS_TCLTK_LIBS)' + # sqlite cfgtest_newline cfgtest_comment 'sqlite3' diff --git a/project/depends.mk b/project/depends.mk index 54b3373..e69de29 100644 --- a/project/depends.mk +++ b/project/depends.mk @@ -1,6 +0,0 @@ -# shared extensions: dependency switches -CFLAGS_TCLTK += -DWITH_APPINIT -LDFLAGS_TCLTK += $(LDFLAGS_TCLTK_LIBS) - -# static extensions: dependency switch -LDFLAGS_TCLTK_STATIC += $(LDFLAGS_TCLTK)