summaryrefslogtreecommitdiff
path: root/package/sudo/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'package/sudo/Makefile')
-rw-r--r--package/sudo/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/sudo/Makefile b/package/sudo/Makefile
index 5cfc938cf..4b76fb1d6 100644
--- a/package/sudo/Makefile
+++ b/package/sudo/Makefile
@@ -20,7 +20,12 @@ $(eval $(call PKG_template,SUDO,sudo,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS
HOST_CPPFLAGS+= -I../ -I../include
+ifeq ($(ADK_TARGET_USE_STATIC_LIBS),y)
+MAKE_FLAGS+= LDFLAGS="$(TARGET_LDFLAGS) -all-static"
+else
TARGET_LDFLAGS+= -ldl
+endif
+
CONFIGURE_ARGS+= --without-pam \
--without-sendmail \
--disable-shared \