Add temporary hack for libtool when using DESTDIR in stage1
authorHugo Villeneuve <hugo@hugovil.com>
Mon, 2 Mar 2015 13:10:46 +0000 (08:10 -0500)
committerHugo Villeneuve <hugo@hugovil.com>
Thu, 12 Mar 2015 02:15:16 +0000 (22:15 -0400)
stage1/pkg/isl [new file with mode: 0644]
stage1/pkg/mpc [new file with mode: 0644]
stage1/pkg/mpfr [new file with mode: 0644]
stage1/pkg/util-linux

diff --git a/stage1/pkg/isl b/stage1/pkg/isl
new file mode 100644 (file)
index 0000000..481e118
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+hvbuild_post()
+{
+    sed -i -e "s@ /tools/lib/libgmp.la@ ${TOOLS_DIR}/lib/libgmp.la@" \
+        ${TOOLS_DIR}/lib/libisl.la
+}
diff --git a/stage1/pkg/mpc b/stage1/pkg/mpc
new file mode 100644 (file)
index 0000000..ff08a99
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+hvbuild_post()
+{
+    sed -i -e "s@ /tools/lib/libgmp.la@ ${TOOLS_DIR}/lib/libgmp.la@" \
+        ${TOOLS_DIR}/lib/libmpc.la
+}
diff --git a/stage1/pkg/mpfr b/stage1/pkg/mpfr
new file mode 100644 (file)
index 0000000..2e88888
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+hvbuild_post()
+{
+    sed -i -e "s@ /tools/lib/libgmp.la@ ${TOOLS_DIR}/lib/libgmp.la@" \
+        ${TOOLS_DIR}/lib/libmpfr.la
+}
index 3b57fa9..83ec824 100644 (file)
@@ -24,4 +24,7 @@ hvbuild_post()
     for link in ${LINKS}; do
         ln -svfT /tools/bin/${link} ${LFS}/bin/${link}
     done
+
+    sed -i -e "s@ /tools/lib/libuuid.la@ ${TOOLS_DIR}/lib/libuuid.la@" \
+        ${TOOLS_DIR}/lib/libblkid.la
 }