summaryrefslogtreecommitdiff
path: root/meta/packages/libtool/libtool-1.5.10/prefix.patch
blob: fa30d02f26ca8a5d86eb5f9ce2511749cb13e519 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40

#
# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
#

--- libtool-1.5.6/libtool.m4~prefix.patch	2004-05-14 23:02:28.000000000 -0500
+++ libtool-1.5.6/libtool.m4	2004-05-14 23:02:34.000000000 -0500
@@ -82,7 +82,8 @@
 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
 # Always use our own libtool.
-LIBTOOL='$(SHELL) $(top_builddir)/libtool'
+LIBTOOL='$(SHELL) $(top_builddir)'
+LIBTOOL="$LIBTOOL/$host_alias-libtool"
 AC_SUBST(LIBTOOL)dnl
 
 # Prevent multiple expansion
@@ -149,7 +150,7 @@
 rm="rm -f"
 
 # Global variables:
-default_ofile=libtool
+default_ofile=${host_alias}-libtool
 can_build_shared=yes
 
 # All known linkers require a `.a' archive for static linking (except M$VC,
--- libtool-1.5.6/Makefile.am~prefix.patch	2004-04-11 00:07:06.000000000 -0500
+++ libtool-1.5.6/Makefile.am	2004-05-14 23:02:46.000000000 -0500
@@ -30,9 +30,9 @@
 aclocal_DATA = $(aclocal_macros)
 
 # The standalone libtool script, and the libtool distributor.
-bin_SCRIPTS = libtool libtoolize
+bin_SCRIPTS = $(host_alias)-libtool libtoolize
 
-libtool: $(srcdir)/ltmain.sh $(top_builddir)/configure.ac
+$(host_alias)-libtool: $(srcdir)/ltmain.sh $(top_builddir)/configure.ac
 	$(SHELL) $(top_builddir)/config.status --recheck
 	chmod +x $@