47 lines
1.3 KiB
Diff
47 lines
1.3 KiB
Diff
|
--- libX11-1.1.1/configure.ac.orig 2006-12-01 02:50:11.000000000 +0100
|
||
|
+++ libX11-1.1.1/configure.ac 2007-06-08 15:20:02.000000000 +0200
|
||
|
@@ -7,6 +7,8 @@
|
||
|
[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
|
||
|
libX11)
|
||
|
AC_CONFIG_SRCDIR([Makefile.am])
|
||
|
+AC_CANONICAL_BUILD
|
||
|
+AC_CANONICAL_HOST
|
||
|
AM_INIT_AUTOMAKE([dist-bzip2 foreign])
|
||
|
|
||
|
AM_MAINTAINER_MODE
|
||
|
@@ -18,6 +20,15 @@
|
||
|
AC_PROG_LIBTOOL
|
||
|
AC_PROG_CC
|
||
|
|
||
|
+AC_MSG_CHECKING([for CC_FOR_BUILD])
|
||
|
+if test x$host != x$build ; then
|
||
|
+ CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
|
||
|
+else
|
||
|
+ CC_FOR_BUILD=${CC}
|
||
|
+fi
|
||
|
+AC_MSG_RESULT([$CC_FOR_BUILD])
|
||
|
+AC_SUBST(CC_FOR_BUILD)
|
||
|
+
|
||
|
XORG_PROG_RAWCPP
|
||
|
|
||
|
# Build with XCB support?
|
||
|
--- libX11-1.1.1/src/util/Makefile.am.orig 2006-10-04 19:43:17.000000000 +0200
|
||
|
+++ libX11-1.1.1/src/util/Makefile.am 2007-06-08 15:20:42.000000000 +0200
|
||
|
@@ -5,7 +5,15 @@
|
||
|
makekeys_CFLAGS=$(X11_CFLAGS)
|
||
|
|
||
|
#override CC = gcc
|
||
|
-LINK = $(CC) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
|
||
|
+COMPILE = $(CC_FOR_BUILD) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
|
||
|
+ $(AM_CPPFLAGS) $(CPPFLAGS_FOR_BUILD) $(AM_CFLAGS) $(CFLAGS_FOR_BUILD)
|
||
|
+LINK = $(CC_FOR_BUILD) $(AM_CFLAGS) $(AM_LDFLAGS) $(LDFLAGS_FOR_BUILD) -o $@
|
||
|
+
|
||
|
+$(srcdir)/makekeys-makekeys.o:
|
||
|
+ $(COMPILE) -c $< -o $@
|
||
|
+
|
||
|
+$(srcdir)/makekeys: $(srcdir)/makekeys-makekeys.o
|
||
|
+ $(LINK) $< -o $@
|
||
|
|
||
|
EXTRA_DIST = mkks.sh
|
||
|
|