diff options
author | nico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-08-10 03:02:06 +0000 |
---|---|---|
committer | nico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-08-10 03:02:06 +0000 |
commit | cd3f5461688969f4b9e30f103a17dacb64bdee8e (patch) | |
tree | 1a6304caa5b4c8ce78e2c62d825b2fc6766e40e7 /openwrt/package/uclibc++/Makefile | |
parent | af94a55eca67c02a113467b67da317754c265390 (diff) |
add support for multiple target arch,
fix building with make -C package/uclibc++
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@1592 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/uclibc++/Makefile')
-rw-r--r-- | openwrt/package/uclibc++/Makefile | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/openwrt/package/uclibc++/Makefile b/openwrt/package/uclibc++/Makefile index 2dac7a7ff..0b4c5eaff 100644 --- a/openwrt/package/uclibc++/Makefile +++ b/openwrt/package/uclibc++/Makefile @@ -32,14 +32,14 @@ UCLIBC_TARGET_ARCH:=$(shell echo $(ARCH) | sed -e s'/-.*//' \ ) $(PKG_BUILD_DIR)/.configured: - cp ./uclibc++.config $(PKG_BUILD_DIR)/.config - $(SED) 's,^.*TARGET_ARCH.*,TARGET_ARCH="$(UCLIBC_TARGET_ARCH)",g' $(PKG_BUILD_DIR)/.config - $(SED) 's,^.*ARCH_CFLAGS.*,ARCH_CFLAGS="-mno-split-addresses $(TARGET_CFLAGS)",g' $(PKG_BUILD_DIR)/.config + cp ./files/config.$(UCLIBC_TARGET_ARCH) $(PKG_BUILD_DIR)/.config touch $@ $(PKG_BUILD_DIR)/.built: $(MAKE) -C $(PKG_BUILD_DIR) \ + TOPDIR="$(PKG_BUILD_DIR)/" \ $(TARGET_CONFIGURE_OPTS) \ + ARCH_CFLAGS="$(TARGET_CFLAGS)" \ CROSS="$(TARGET_CROSS)" \ all touch $@ @@ -54,6 +54,9 @@ $(IPKG_UCLIBCXX): compile: install-dev install-dev: $(PKG_BUILD_DIR)/.built $(MAKE) -C $(PKG_BUILD_DIR) \ - $(TARGET_CONFIGURE_OPTS) CROSS="$(TARGET_CROSS)" \ + TOPDIR="$(PKG_BUILD_DIR)/" \ + $(TARGET_CONFIGURE_OPTS) \ + ARCH_CFLAGS="$(TARGET_CFLAGS)" \ + CROSS="$(TARGET_CROSS)" \ DESTDIR="$(STAGING_DIR)" \ install |