From 687811599e6e57169c362b82edb112fcaa48db53 Mon Sep 17 00:00:00 2001 From: nico Date: Tue, 8 Aug 2006 15:05:22 +0000 Subject: [PATCH] fix rarpd: revert to plain old ./configure call, Build/Configure/Default does not support overloading CFLAGS (yet) git-svn-id: svn://svn.openwrt.org/openwrt/packages@4543 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- net/rarpd/Makefile | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/net/rarpd/Makefile b/net/rarpd/Makefile index 17ca16146..852d7a0fb 100644 --- a/net/rarpd/Makefile +++ b/net/rarpd/Makefile @@ -41,8 +41,34 @@ define Package/rarpd endef define Build/Configure -$(call Build/Configure/Default,--with-libnet="$(STAGING_DIR)/usr" \ - --with-pcap="$(STAGING_DIR)/usr",CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)") + (cd $(PKG_BUILD_DIR); rm -f config.cache; \ + $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \ + CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \ + LDFLAGS="-I$(STAGING_DIR)/usr/lib -I$(STAGING_DIR)/lib" \ + ./configure \ + --target=$(GNU_TARGET_NAME) \ + --host=$(GNU_TARGET_NAME) \ + --build=$(GNU_HOST_NAME) \ + --program-prefix="" \ + --program-suffix="" \ + --prefix=/usr \ + --exec-prefix=/usr \ + --bindir=/usr/bin \ + --datadir=/usr/share \ + --includedir=/usr/include \ + --infodir=/usr/share/info \ + --libdir=/usr/lib \ + --libexecdir=/usr/lib \ + --localstatedir=/var \ + --mandir=/usr/share/man \ + --sbindir=/usr/sbin \ + --sysconfdir=/etc \ + $(DISABLE_LARGEFILE) \ + $(DISABLE_NLS) \ + --with-libnet="$(STAGING_DIR)/usr" \ + --with-pcap="$(STAGING_DIR)/usr" \ + ); endef define Build/Compile -- 2.11.0