diff --git a/package/fcgiwrap/0001-use-LIBS-from-configure.patch b/package/fcgiwrap/0001-use-LIBS-from-configure.patch index 12563c4275..3f8606945f 100644 --- a/package/fcgiwrap/0001-use-LIBS-from-configure.patch +++ b/package/fcgiwrap/0001-use-LIBS-from-configure.patch @@ -1,7 +1,7 @@ Makefile.in: Use LIBS from configure rather than specifying -lfcgi manually. libfcgi needs libm and fcgiwrap does not use libtool or pkgconf to -detect libfcgi, so we need to add -lm explicitely when using static +detect libfcgi, so we need to add -lm explicitly when using static libs. Buildroot does this by providing LIBS=-lm to configure when needed. However fcgiwrap does not use Automake and its Makefile.in ignores LIBS from configure. Fix it with this patch. diff --git a/package/fcgiwrap/fcgiwrap.mk b/package/fcgiwrap/fcgiwrap.mk index 62c4c1369d..4845f013fa 100644 --- a/package/fcgiwrap/fcgiwrap.mk +++ b/package/fcgiwrap/fcgiwrap.mk @@ -20,7 +20,7 @@ FCGIWRAP_CONF_OPTS += --without-systemd endif # libfcgi needs libm and fcgiwrap does not use libtool or pkgconf to -# detect libfcgi, so we need to add -lm explicitely when using static +# detect libfcgi, so we need to add -lm explicitly when using static # libs. ifeq ($(BR2_STATIC_LIBS),y) FCGIWRAP_CONF_OPTS += LIBS=-lm