diff options
Diffstat (limited to 'autosetup/local.tcl')
-rw-r--r-- | autosetup/local.tcl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/autosetup/local.tcl b/autosetup/local.tcl index 36aff86..a5da8b0 100644 --- a/autosetup/local.tcl +++ b/autosetup/local.tcl @@ -55,6 +55,9 @@ proc check-extension-status {ext required} { array set depinfo {m 0 y 0 n 0} + # Stash the current value of LIBS + set LIBS [get-define LIBS] + # Check direct dependencies if [ext-get $ext check 1] { # "check" conditions are met @@ -63,6 +66,12 @@ proc check-extension-status {ext required} { incr depinfo(n) } + if {$ext in $withinfo(mod)} { + # This is a module, so ignore LIBS + # LDLIBS_$ext will contain the appropriate libs for this module + define LIBS $LIBS + } + if {$depinfo(n) == 0} { # Now extension dependencies foreach i [ext-get $ext dep] { |