fix kexec-tools build

SVN-Revision: 6428
This commit is contained in:
Felix Fietkau 2007-02-28 13:28:18 +00:00
parent 74f71f0739
commit 15a9b61bbd
2 changed files with 12 additions and 5 deletions

View file

@ -303,12 +303,14 @@ CONFIGURE_ARGS := \
--infodir=/usr/info \ --infodir=/usr/info \
$(DISABLE_NLS) $(DISABLE_NLS)
TARGET_CPPFLAGS=-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include
TARGET_LDFLAGS=-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib
CONFIGURE_VARS:= \ CONFIGURE_VARS:= \
$(TARGET_CONFIGURE_OPTS) \ $(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \ CFLAGS="$(TARGET_CFLAGS)" \
CXXFLAGS="$(TARGET_CFLAGS)" \ CXXFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \ CPPFLAGS="$(TARGET_CPPFLAGS)" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \ LDFLAGS="$(TARGET_LDFLAGS)" \
PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \ PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
PKG_CONFIG_LIBDIR="$(STAGING_DIR)/usr/lib/pkgconfig" PKG_CONFIG_LIBDIR="$(STAGING_DIR)/usr/lib/pkgconfig"

View file

@ -33,12 +33,17 @@ define Package/kexec-tools
URL:=http://www.xmission.com/~ebiederm/files/kexec/README URL:=http://www.xmission.com/~ebiederm/files/kexec/README
endef endef
MAKE_FLAGS += \
DESTDIR="$(PKG_INSTALL_DIR)" \
EXTRA_CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" \
BUILD_CFLAGS="-O2" \
LIBS="$(TARGET_LDFLAGS) -lz" \
install
define Build/Compile define Build/Compile
rm -rf $(PKG_INSTALL_DIR) rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR) mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \ $(call Build/Compile/Default,)
DESTDIR="$(PKG_INSTALL_DIR)" \
install
endef endef
define Package/kexec-tools/install define Package/kexec-tools/install