use $(TARGET_CPPFLAGS) & $(TARGET_LDFLAGS) instead of full -I... & -L...
authorNicolas Thill <nico@openwrt.org>
Mon, 3 Sep 2007 05:00:38 +0000 (05:00 +0000)
committerNicolas Thill <nico@openwrt.org>
Mon, 3 Sep 2007 05:00:38 +0000 (05:00 +0000)
SVN-Revision: 8578

package/ncurses/Makefile
package/openssl/Makefile

index d9fc45a718546bd365d957ade03f600599fcd5c9..ba0da00cd79241ca22d660b466f8f9bff65c5cec 100644 (file)
@@ -80,8 +80,8 @@ define Build/Compile
        (cd $(PKG_BUILD_DIR); rm -f config.cache; \
                $(TARGET_CONFIGURE_OPTS) \
                CFLAGS="$(TARGET_CFLAGS)" \
-               CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
-               LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
+               CPPFLAGS="$(TARGET_CPPFLAGS)" \
+               LDFLAGS="$(TARGET_LDFLAGS)" \
                ./configure \
                        --target=$(GNU_TARGET_NAME) \
                        --host=$(GNU_TARGET_NAME) \
index c1e2d9ac8c94ee5025ed09d2e6902729d5fe8cfc..015404d90b827388ee67ab2e2af2a423c0475e53 100644 (file)
@@ -69,8 +69,8 @@ define Build/Configure
                ./Configure linux-openwrt \
                        --prefix=/usr \
                        --openssldir=/etc/ssl \
-                       -I$(STAGING_DIR)/usr/include \
-                       -L$(STAGING_DIR)/usr/lib -ldl \
+                       $(TARGET_CPPFLAGS) \
+                       $(TARGET_LDFLAGS) -ldl \
                        -DOPENSSL_SMALL_FOOTPRINT \
                        $(OPENSSL_NO_CIPHERS) \
                        $(OPENSSL_OPTIONS) \