summaryrefslogtreecommitdiff
path: root/package/sudo
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-08-07 20:37:22 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2015-08-09 09:37:05 +0200
commitf8fe8f668c2a592a7791869a09b5a4000e01596a (patch)
tree00ce0aa1a8cdbfbcd78426f234a4497d2f4bd2a0 /package/sudo
parent4803825faf6d3eed32b49b56c79d54e5112b488b (diff)
allow static linking
Diffstat (limited to 'package/sudo')
-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 \