--- /usr/portage/dev-lang/lua/lua-5.1.5.ebuild 2013-03-10 17:31:09.000000000 +0100 +++ lua-5.1.5.ebuild 2013-06-04 00:32:34.000000000 +0200 @@ -53,6 +53,8 @@ epatch "${FILESDIR}"/${PN}-${PATCH_PV}-make_static-r1.patch fi + epatch "${FILESDIR}"/lua-BJA-libtool-patch.diff + # We want packages to find our things... sed -i \ -e 's:/usr/local:'${EPREFIX}'/usr:' \ --- Makefile 2013-06-04 00:09:16.000000000 +0200 +++ Makefile 2013-06-04 00:09:28.000000000 +0200 @@ -130,7 +130,7 @@ lecho: # Use libtool for binary installs, etc. export V -export LIBTOOL = libtool --quiet --tag=CC +export LIBTOOL = $(ROOT)/usr/bin/libtool --quiet --tag=CC # See libtool manual about how to set this gentoo_clean: --- src/Makefile 2013-06-04 00:01:58.000000000 +0200 +++ src/Makefile 2013-06-04 00:02:18.000000000 +0200 @@ -181,7 +181,7 @@ print.o: print.c ldebug.h lstate.h lua.h # (end of Makefile) -export LIBTOOL = libtool --quiet --tag=CC +export LIBTOOL = $(ROOT)/usr/bin/libtool --quiet --tag=CC export LIB_VERSION = 6:5:1 # The following rules use libtool for compiling and linking in order to