Browse Source

allow static linking

Waldemar Brodkorb 10 years ago
parent
commit
f8fe8f668c
1 changed files with 5 additions and 0 deletions
  1. 5 0
      package/sudo/Makefile

+ 5 - 0
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 \