cleanup
authorMike Baker <mbm@openwrt.org>
Wed, 11 Apr 2007 20:25:23 +0000 (20:25 +0000)
committerMike Baker <mbm@openwrt.org>
Wed, 11 Apr 2007 20:25:23 +0000 (20:25 +0000)
SVN-Revision: 6935

net/ssmtp/Makefile

index 079a4cf..b636494 100644 (file)
@@ -18,6 +18,9 @@ PKG_MD5SUM:=957e6fff08625fe34f4fc33d0925bbc9
 PKG_CAT:=zcat
 
 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
 PKG_CAT:=zcat
 
 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
+EXTRA_LDFLAGS+=-Wl,-rpath-link,$(STAGING_DIR)/usr/lib
+TARGET_CONFIGURE_OPTS+=\
+       CC="$(TARGET_CC) $(EXTRA_LDFLAGS)"
 
 include $(INCLUDE_DIR)/package.mk
 
 
 include $(INCLUDE_DIR)/package.mk
 
@@ -38,19 +41,11 @@ endef
 # uses GNU configure
 
 define Build/Configure
 # uses GNU configure
 
 define Build/Configure
-       cd $(PKG_BUILD_DIR)
        $(call Build/Configure/Default, \
                --enable-ssl \
        )
 endef
 
        $(call Build/Configure/Default, \
                --enable-ssl \
        )
 endef
 
-define Build/Compile
-       EXTRA_CFLAGS="-I$(STAGING_DIR)/usr/include" \
-       EXTRA_LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
-       $(MAKE) -C $(PKG_BUILD_DIR) \
-               all
-endef
-
 define Package/ssmtp/install   
        $(INSTALL_DIR) $(1)/etc/ssmtp
        $(INSTALL_DATA) $(PKG_BUILD_DIR)/ssmtp.conf $(1)/etc/ssmtp/
 define Package/ssmtp/install   
        $(INSTALL_DIR) $(1)/etc/ssmtp
        $(INSTALL_DATA) $(PKG_BUILD_DIR)/ssmtp.conf $(1)/etc/ssmtp/