clean up openssh makefile, fix avr32 compile
git-svn-id: svn://svn.openwrt.org/openwrt/packages@12168 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
189261967f
commit
0569001ad2
@ -99,7 +99,10 @@ define Package/openssh-sftp-server/description
|
|||||||
OpenSSH SFTP server.
|
OpenSSH SFTP server.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
CONFIGURE_OPTS+= \
|
CONFIGURE_ARGS+= \
|
||||||
|
$(DISABLE_LARGEFILE) \
|
||||||
|
$(DISABLE_NLS) \
|
||||||
|
--sysconfdir=/etc/ssh \
|
||||||
--enable-shared \
|
--enable-shared \
|
||||||
--disable-static \
|
--disable-static \
|
||||||
--disable-debug \
|
--disable-debug \
|
||||||
@ -116,40 +119,11 @@ CONFIGURE_OPTS+= \
|
|||||||
--without-x
|
--without-x
|
||||||
|
|
||||||
ifneq ($(CONFIG_SSP_SUPPORT),y)
|
ifneq ($(CONFIG_SSP_SUPPORT),y)
|
||||||
CONFIGURE_OPTS+= \
|
CONFIGURE_ARGS += \
|
||||||
--without-stackprotect
|
--without-stackprotect
|
||||||
endif
|
endif
|
||||||
|
|
||||||
define Build/Configure
|
CONFIGURE_VARS += LD="$(TARGET_CC)"
|
||||||
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
|
|
||||||
$(TARGET_CONFIGURE_OPTS) \
|
|
||||||
CFLAGS="$(TARGET_CFLAGS)" \
|
|
||||||
CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
|
|
||||||
LD="$(TARGET_CC)" \
|
|
||||||
LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
|
|
||||||
./configure \
|
|
||||||
--target=$(GNU_TARGET_NAME) \
|
|
||||||
--host=$(GNU_TARGET_NAME) \
|
|
||||||
--build=$(GNU_HOST_NAME) \
|
|
||||||
--program-prefix="" \
|
|
||||||
--program-suffix="" \
|
|
||||||
--prefix=/usr \
|
|
||||||
--exec-prefix=/usr \
|
|
||||||
--bindir=/usr/bin \
|
|
||||||
--datadir=/usr/share \
|
|
||||||
--includedir=/usr/include \
|
|
||||||
--infodir=/usr/share/info \
|
|
||||||
--libdir=/usr/lib \
|
|
||||||
--libexecdir=/usr/lib \
|
|
||||||
--localstatedir=/var \
|
|
||||||
--mandir=/usr/share/man \
|
|
||||||
--sbindir=/usr/sbin \
|
|
||||||
--sysconfdir=/etc/ssh \
|
|
||||||
$(DISABLE_LARGEFILE) \
|
|
||||||
$(DISABLE_NLS) \
|
|
||||||
$(CONFIGURE_OPTS) \
|
|
||||||
);
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
rm -rf $(PKG_INSTALL_DIR)
|
rm -rf $(PKG_INSTALL_DIR)
|
||||||
@ -160,6 +134,7 @@ define Build/Compile
|
|||||||
sftp-server
|
sftp-server
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||||
DESTDIR="$(PKG_INSTALL_DIR)" \
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
||||||
|
STRIP_OPT="" \
|
||||||
all install
|
all install
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user