Check SSP support availabily for openssh and avahi
authorFlorian Fainelli <florian@openwrt.org>
Wed, 30 Jul 2008 14:16:45 +0000 (14:16 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Wed, 30 Jul 2008 14:16:45 +0000 (14:16 +0000)
SVN-Revision: 12012

libs/avahi/Makefile
net/openssh/Makefile

index bff264f..8f5e88c 100644 (file)
@@ -103,7 +103,6 @@ endef
 CONFIGURE_ARGS+= \
        --enable-shared \
        --enable-static \
-       --disable-stack-protector \
        --disable-glib \
        --disable-gobject \
        --disable-qt3 \
@@ -134,7 +133,12 @@ CONFIGURE_ARGS+= \
        --with-avahi-user=nobody \
        --with-avahi-group=nogroup \
        --with-autoipd-user=nobody \
-       --with-autoipd-group=nogroup \
+       --with-autoipd-group=nogroup
+
+ifneq ($(CONFIG_SSP_SUPPORT),y)
+CONFIGURE_ARGS+= \
+       --disable-stack-protector
+endif
 
 CONFIGURE_VARS+= \
        CFLAGS="$$$$CFLAGS -DNDEBUG" \
index 44437c4..dade254 100644 (file)
@@ -99,6 +99,27 @@ define Package/openssh-sftp-server/description
 OpenSSH SFTP server.
 endef
 
+CONFIGURE_OPTS+= \
+       --enable-shared \
+       --disable-static \
+       --disable-debug \
+       --disable-strip \
+       --disable-etc-default-login \
+       --disable-lastlog \
+       --disable-utmp \
+       --disable-utmpx \
+       --disable-wtmp \
+       --disable-wtmpx \
+       --without-bsd-auth \
+       --without-kerberos5 \
+       --without-pam \
+       --without-x
+
+ifneq ($(CONFIG_SSP_SUPPORT),y)
+CONFIGURE_OPTS+= \
+       --without-stackprotect
+endif
+       
 define Build/Configure
        (cd $(PKG_BUILD_DIR); rm -f config.cache; \
                $(TARGET_CONFIGURE_OPTS) \
@@ -126,21 +147,7 @@ define Build/Configure
                        --sysconfdir=/etc/ssh \
                        $(DISABLE_LARGEFILE) \
                        $(DISABLE_NLS) \
-                       --enable-shared \
-                       --disable-static \
-                       --disable-debug \
-                       --disable-strip \
-                       --disable-etc-default-login \
-                       --disable-lastlog \
-                       --disable-utmp \
-                       --disable-utmpx \
-                       --disable-wtmp \
-                       --disable-wtmpx \
-                       --without-stackprotect \
-                       --without-bsd-auth \
-                       --without-kerberos5 \
-                       --without-pam \
-                       --without-x \
+                       $(CONFIGURE_OPTS) \
        );
 endef