changeset 3232:acec083ac83b

Enable MPC compilation
author Anirudha Bose <ani07nov@gmail.com>
date Mon, 23 Sep 2013 23:42:26 +0530
parents 3f87daaad087
children 36f223faf601
files src/gcc-mpc.mk
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/gcc-mpc.mk
+++ b/src/gcc-mpc.mk
@@ -15,3 +15,15 @@
     $(SED) -n 's,.*<a name="\([0-9][^"]*\)".*,\1,p' | \
     head -1
 endef
+
+define $(PKG)_BUILD
+    cd '$(1)' && ./configure \
+        $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
+        $(ENABLE_SHARED_OR_STATIC) \
+        --prefix='$(HOST_PREFIX)' \
+        LDFLAGS='-Wl,-L $(HOST_LIBDIR)' \
+        CPPFLAGS='-I $(HOST_INCDIR)'
+    $(MAKE) -C '$(1)'
+    $(MAKE) -C '$(1)' install
+endef
+