]> Git Repo - buildroot-mgba.git/commitdiff
package/nut: disable libltdl (and nut-scanner) for static-only
authorYann E. MORIN <[email protected]>
Sat, 19 Dec 2015 18:10:56 +0000 (19:10 +0100)
committerThomas Petazzoni <[email protected]>
Sun, 20 Dec 2015 12:56:01 +0000 (13:56 +0100)
nut-scanner needs libltdl, a wrapper around dlopen/dlsym. This does not
really make sense on a static-only build.

Disable use of libltdl in static-only builds; this disble nut-scanner.

Fixes:
    http://autobuild.buildroot.org/results/d8e/d8e769709681b1965f36eb5c27f71f3a1f5adcf1/
    http://autobuild.buildroot.org/results/6e4/6e403642069093389acbeeccd7030b76d4ab68be/
    http://autobuild.buildroot.org/results/fa4/fa4c647ce58b91b863d8de5bf9d44b2060a1cf1c/
    and so many others...

Signed-off-by: "Yann E. MORIN" <[email protected]>
Signed-off-by: Thomas Petazzoni <[email protected]>
package/nut/nut.mk

index d5babee2b506f62638a9395d97d940eae60c55ec..b0a92ca660fe4565b40aa5ef3ddadac931f604fa 100644 (file)
@@ -50,8 +50,11 @@ else
 NUT_CONF_OPTS += --without-cgi
 endif
 
-# libltdl (libtool) is needed for nut-scanner
-ifeq ($(BR2_PACKAGE_LIBTOOL),y)
+# nut-scanner needs libltdl, which is a wrapper arounf dlopen/dlsym,
+# so is not available for static-only builds.
+# There is no flag to directly enable/disable nut-scanner, it's done
+# via the --enable/disable-libltdl flag.
+ifeq ($(BR2_STATIC_LIBS):$(BR2_PACKAGE_LIBTOOL),:y)
 NUT_DEPENDENCIES += libtool
 NUT_CONF_OPTS += --with-libltdl
 else
This page took 0.038289 seconds and 4 git commands to generate.