utils/smartmontools: fix a cross compile issue (thank you mbm)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@23584 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
3d6bf08cc6
commit
fa803d2967
@ -34,28 +34,22 @@ endef
|
|||||||
|
|
||||||
# uses GNU configure
|
# uses GNU configure
|
||||||
|
|
||||||
define Build/Configure
|
CONFIGURE_VARS += \
|
||||||
(cd $(PKG_BUILD_DIR); \
|
|
||||||
./autogen.sh \
|
|
||||||
./configure \
|
|
||||||
CC="$(TARGET_CC)" \
|
|
||||||
CXX="$(TARGET_CXX)" \
|
|
||||||
CPP="$(TARGET_CPP)" \
|
|
||||||
CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++" \
|
CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++" \
|
||||||
CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++ -I$(LINUX_DIR)/include" \
|
CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++ -I$(LINUX_DIR)/include" \
|
||||||
LDFLAGS="$$$$LDFLAGS" \
|
LDFLAGS="$$$$LDFLAGS" \
|
||||||
LIBS="-nodefaultlibs -luClibc++ -lm $(LIBGCC_S) -lc" \
|
LIBS="-nodefaultlibs -luClibc++ -lm $(LIBGCC_S) -lc" \
|
||||||
--prefix=/usr \
|
|
||||||
--build=$(GNU_BUILD_NAME) \
|
define Build/Configure
|
||||||
--host=$(GNU_HOST_NAME) \
|
(cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
|
||||||
--target=$(GNU_TARGET_NAME) \
|
./autogen.sh \
|
||||||
);
|
);
|
||||||
$(call Build/Configure/Default,, \
|
$(call Build/Configure/Default)
|
||||||
)
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR)
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||||
|
LD="$(TARGET_CXX)"
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/smartmontools/install
|
define Package/smartmontools/install
|
||||||
|
Loading…
x
Reference in New Issue
Block a user