From 5ff7ea35abba4ab5e2727508dedc5f49a67a2c9f Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Thu, 25 Nov 2010 18:19:33 +0100 Subject: [PATCH] libtool: add autoreconf support Signed-off-by: Stephan Raue --- packages/devel/libtool/meta | 4 +++- .../patches/libtool-2.4-no_use_linker_plugin.patch | 13 +++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 packages/devel/libtool/patches/libtool-2.4-no_use_linker_plugin.patch diff --git a/packages/devel/libtool/meta b/packages/devel/libtool/meta index d8e3ed65f2..a2b3463211 100644 --- a/packages/devel/libtool/meta +++ b/packages/devel/libtool/meta @@ -11,4 +11,6 @@ PKG_PRIORITY="optional" PKG_SECTION="devel" PKG_SHORTDESC="libtool: Generic library support script" PKG_LONGDESC="This is GNU Libtool, a generic library support script. Libtool hides the complexity of using shared libraries behind a consistent, portable interface." -PKG_IS_ADDON="no" \ No newline at end of file +PKG_IS_ADDON="no" + +PKG_AUTORECONF="yes" diff --git a/packages/devel/libtool/patches/libtool-2.4-no_use_linker_plugin.patch b/packages/devel/libtool/patches/libtool-2.4-no_use_linker_plugin.patch new file mode 100644 index 0000000000..30abedba9c --- /dev/null +++ b/packages/devel/libtool/patches/libtool-2.4-no_use_linker_plugin.patch @@ -0,0 +1,13 @@ +diff -Naur libtool-2.4-old/libltdl/m4/libtool.m4 libtool-2.4-new/libltdl/m4/libtool.m4 +--- libtool-2.4-old/libltdl/m4/libtool.m4 2010-09-22 01:41:19.000000000 -0700 ++++ libtool-2.4-new/libltdl/m4/libtool.m4 2010-09-23 20:25:25.000000000 -0700 +@@ -6905,6 +6905,9 @@ + *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; + *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; + esac ++case "$CC $CFLAGS " in #( ++*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; ++esac + + dnl Parse the compiler output and extract the necessary + dnl objects, libraries and library flags.