1 |
solar 09/02/02 19:44:57 |
2 |
|
3 |
Added: libXt-1.0.5-cross.patch |
4 |
Log: |
5 |
- Make libXt cross-compile aware by allowing host system makestrs to be used as a fallback when cross-compile one fails. thanks dberkholz for the better idea on patching |
6 |
(Portage version: 2.1.6.4/cvs/ [masked]x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 x11-libs/libXt/files/libXt-1.0.5-cross.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/libXt/files/libXt-1.0.5-cross.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/libXt/files/libXt-1.0.5-cross.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: libXt-1.0.5-cross.patch |
15 |
=================================================================== |
16 |
--- src/Makefile.am.orig 2009-02-02 18:46:49.000000000 +0000 |
17 |
+++ src/Makefile.am 2009-02-02 18:48:09.000000000 +0000 |
18 |
@@ -97,7 +97,8 @@ |
19 |
$(BUILT_HEADER): $(BUILT_SOURCE) |
20 |
|
21 |
$(BUILT_SOURCE): |
22 |
- $(top_builddir)/util/makestrs -i $(top_srcdir) $(STRINGSABIOPTIONS) < $(STRING_LIST) > StringDefs.c |
23 |
+ @# run the makestrs we just built and fall back to host makestrs for cross-compiles when native one fails |
24 |
+ $(top_builddir)/util/makestrs -i $(top_srcdir) $(STRINGSABIOPTIONS) < $(STRING_LIST) > StringDefs.c || makestrs -i $(top_srcdir) $(STRINGSABIOPTIONS) < $(STRING_LIST) > StringDefs.c |
25 |
mkdir -p $(top_builddir)/src |
26 |
mkdir -p $(top_builddir)/include/X11 |
27 |
cp StringDefs.h $(top_builddir)/include/X11 |