summaryrefslogtreecommitdiffstats
path: root/patches/libXt-1.0.4/libXt-1.0.4-fix-cross-compile.diff
diff options
context:
space:
mode:
Diffstat (limited to 'patches/libXt-1.0.4/libXt-1.0.4-fix-cross-compile.diff')
-rw-r--r--patches/libXt-1.0.4/libXt-1.0.4-fix-cross-compile.diff51
1 files changed, 51 insertions, 0 deletions
diff --git a/patches/libXt-1.0.4/libXt-1.0.4-fix-cross-compile.diff b/patches/libXt-1.0.4/libXt-1.0.4-fix-cross-compile.diff
new file mode 100644
index 000000000..3031d57a5
--- /dev/null
+++ b/patches/libXt-1.0.4/libXt-1.0.4-fix-cross-compile.diff
@@ -0,0 +1,51 @@
+#
+# Submitted-By: Sascha Hauer, 2006-02-23
+# Committed-By: Sascha Hauer
+#
+# Error:
+#
+# crosscompiling sux, x86 doesn't like it, when arm binaries are executed:
+#
+# make[3]: Entering directory `/ptx/work/sha/ptxdist/ptxdist-projects/ptxdist-0.10-trunk/local_projects/phyCORE-pcm027/build-target/libXt-X11R7.0-1.0.0/src'
+# ../util/makestrs -i .. < ../util/string.list > StringDefs.c
+# /bin/sh: ../util/makestrs: cannot execute binary file
+# make[3]: *** [StringDefs.c] Error 126
+#
+#
+# Description:
+#
+# build makestrs for build not for host, using BSP hack, but works
+#
+# rediffed for X.org7.1 by Luotao Fu, 2006-06-19
+# State:
+#
+# not submitted upstream. This patch is not complete. For a proper
+# fix we need to build makestrs twice: once for compiling and once
+# for installing. For ptxdist we don't want to install makestrs, so
+# don't care for now
+#
+--- libXt-X11R7.1-1.0.2.orig/util/Makefile.am 2005-12-10 17:29:07.000000000 +0100
++++ libXt-X11R7.1-1.0.2/util/Makefile.am 2006-06-15 10:49:21.842699066 +0200
+@@ -1,3 +1,11 @@
++# evil hack
++CFLAGS=$(CFLAGS_FOR_BUILD)
++CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
++LDFLAGS=$(LDFLAGS_FOR_BUILD)
++
++CC=$(CC_FOR_BUILD)
++LIBTOOL = @LIBTOOL@ --tag=CC
++
+ if INSTALL_MAKESTRS
+ bin_PROGRAMS = makestrs
+ else
+@@ -10,7 +18,9 @@
+ StrDefs.ht \
+ string.list
+
+-makestrs_CFLAGS = $(XT_CFLAGS)
++makestrs_CFLAGS=$(CFLAGS_FOR_BUILD) $(XT_CFLAGS)
++makestrs_CPPLAGS=$(CPPFLAGS_FOR_BUILD)
++makestrs_LDFLAGS=$(LDFLAGS_FOR_BUILD)
+ makestrs_SOURCES = makestrs.c
+
+