From: Nicolas Thill Date: Tue, 18 Oct 2005 01:58:27 +0000 (+0000) Subject: fix libmad build when arch != mipsel X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5824225005e76a5d63e0002bf8895104631e494c;p=openwrt%2Fstaging%2Fmans0n.git fix libmad build when arch != mipsel SVN-Revision: 2173 --- diff --git a/openwrt/package/libmad/Makefile b/openwrt/package/libmad/Makefile index 4a979d0c07..977248d08a 100644 --- a/openwrt/package/libmad/Makefile +++ b/openwrt/package/libmad/Makefile @@ -19,6 +19,14 @@ include $(TOPDIR)/package/rules.mk $(eval $(call PKG_template,LIBMAD,libmad,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) +FPM:=default +ifeq ($(ARCH),i386) +FPM:=intel +endif +ifeq ($(ARCH),mipsel) +FPM:=mips +endif + $(PKG_BUILD_DIR)/.configured: (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \ $(TARGET_CONFIGURE_OPTS) \ @@ -50,7 +58,7 @@ $(PKG_BUILD_DIR)/.configured: --enable-static \ --disable-rpath \ --with-gnu-ld \ - --enable-fpm=mips \ + --enable-fpm=$(FPM) \ --disable-debugging \ --enable-speed \ );