fix ssmtp compile
authorFelix Fietkau <nbd@openwrt.org>
Sun, 14 Sep 2008 00:44:37 +0000 (00:44 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 14 Sep 2008 00:44:37 +0000 (00:44 +0000)
SVN-Revision: 12607

mail/ssmtp/Makefile

index 6e6ef67..9c9c566 100644 (file)
@@ -18,6 +18,8 @@ PKG_MD5SUM:=957e6fff08625fe34f4fc33d0925bbc9
 
 include $(INCLUDE_DIR)/package.mk
 
+TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
+
 define Package/ssmtp
   SECTION:=mail
   CATEGORY:=Mail
@@ -34,8 +36,8 @@ define Package/ssmtp/description
  configuration.
 endef
 
-TARGET_CONFIGURE_OPTS += \
-       CC="$(TARGET_CC) $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS)"
+CONFIGURE_VARS += \
+       LIBS="-L$(STAGING_DIR)/usr/lib -lcrypto -lssl"
 
 CONFIGURE_ARGS += \
        --enable-ssl