From: Nicolas Thill Date: Mon, 3 Sep 2007 05:00:38 +0000 (+0000) Subject: use $(TARGET_CPPFLAGS) & $(TARGET_LDFLAGS) instead of full -I... & -L... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=8680e1d07d16c7e6040210b9cebe57ccc669130d;p=openwrt%2Fstaging%2Fstintel.git use $(TARGET_CPPFLAGS) & $(TARGET_LDFLAGS) instead of full -I... & -L... SVN-Revision: 8578 --- diff --git a/package/ncurses/Makefile b/package/ncurses/Makefile index d9fc45a718..ba0da00cd7 100644 --- a/package/ncurses/Makefile +++ b/package/ncurses/Makefile @@ -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) \ diff --git a/package/openssl/Makefile b/package/openssl/Makefile index c1e2d9ac8c..015404d90b 100644 --- a/package/openssl/Makefile +++ b/package/openssl/Makefile @@ -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) \