]> git.draconx.ca Git - dxcommon.git/commitdiff
fix-ltdl: Move all convenience libs to EXTRA_LTLIBRARIES only.
authorNick Bowler <nbowler@draconx.ca>
Sat, 12 May 2012 00:00:02 +0000 (20:00 -0400)
committerNick Bowler <nbowler@draconx.ca>
Sat, 12 May 2012 00:00:02 +0000 (20:00 -0400)
There's no reason to list these in noinst_LTLIBRARIES in a non-recursive
build, as they will be picked up correctly by ordinary prerequisites.

scripts/fix-ltdl.pl

index da987be72ac04b2125b378d9e32d14965b7bd9b3..7dd1c8b0ef6e7991b2adb8e8cda86e4c28eb84db 100755 (executable)
@@ -141,6 +141,15 @@ EOF
                $_ = fixup_libobjs($_);
        }
 
+       # There is no reason to list $(LT_DLLOADERS) in noinst_LTLIBRARIES;
+       # these will be picked up as ordinary prerequisites.  They're already
+       # all in EXTRA_LTLIBRARIES.
+       drop if (/^noinst_LTLIBRARIES.*\$\(LT_DLLOADERS\)$/);
+
+       # Don't list other libs in noinst_LTLIBRARIES so that they don't get
+       # built unless explicitly required by prerequisites.
+       s/noinst_LTLIBRARIES/EXTRA_LTLIBRARIES/;
+
        # BUILT_SOURCES has similar problems to recursive make: inadequate
        # dependencies lead to incorrect builds.  Collect them into an
        # ordinary variable so we can deal with them later.