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 079a4cf32af7349b9f0c9c48728f6c52bdbd2a06..b6364945d3b9ca00c43290f5c397bf537ab57176 100644 (file)
@@ -18,6 +18,9 @@ PKG_MD5SUM:=957e6fff08625fe34f4fc33d0925bbc9
 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
 
@@ -38,19 +41,11 @@ endef
 # uses GNU configure
 
 define Build/Configure
-       cd $(PKG_BUILD_DIR)
        $(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/