patches/duma/2_5_15/100-cross-compile.patch
author Matthieu Crapet <mcrapet@gmail.com>
Wed Jun 06 12:03:12 2012 +0200 (2012-06-06)
changeset 2991 252ade1e9e17
parent 572 944e145f3890
permissions -rw-r--r--
libc/eglibc: fix missing LIBC_TRY_CC_OPTION definition (eglibc 2.15)

Upstream SVN is currently broken:
http://www.eglibc.org/svn/branches/eglibc-2_15/libc/

LIBC_TRY_CC_OPTION macro is not defined in aclocal.m4.
This patch fix the configure script.

Once upstream branch will be fixed this patch could be reverted.

Related patch (committed to eglibc trunk):
Use autoconf macro for testing compiler options with empty input
http://sourceware.org/ml/libc-alpha/2012-03/msg00816.html

Signed-off-by: Matthieu Crapet <mcrapet@gmail.com>

diff -r 1f6c8e4b2b92 -r d10afc5bcc25
patches/eglibc/2_15/110-aclocal-LIBC_TRY_CC_OPTION.patch
yann@1436
     1
diff -durN duma_2_5_15.orig/GNUmakefile duma_2_5_15/GNUmakefile
yann@1436
     2
--- duma_2_5_15.orig/GNUmakefile	2008-08-03 21:22:38.000000000 +0200
yann@1436
     3
+++ duma_2_5_15/GNUmakefile	2009-06-19 15:32:23.000000000 +0200
yann@572
     4
@@ -93,10 +93,6 @@
yann@572
     5
 # also define 'WIN32'
yann@572
     6
 
yann@572
     7
 # some defaults:
yann@572
     8
-CC=gcc
yann@572
     9
-CXX=g++
yann@572
    10
-AR=ar
yann@572
    11
-RANLIB=ranlib
yann@572
    12
 INSTALL=install
yann@572
    13
 RM=rm
yann@572
    14
 RMFORCE=rm -f
yann@1436
    15
@@ -471,7 +467,7 @@
yann@572
    16
 
yann@572
    17
 createconf$(EXEPOSTFIX): createconf.o
yann@572
    18
 	- $(RMFORCE) createconf$(EXEPOSTFIX)
yann@572
    19
-	$(CC) $(CFLAGS) $(DUMA_OPTIONS) createconf.o -o createconf$(EXEPOSTFIX)
yann@572
    20
+	$(HOSTCC) $(HOSTCFLAGS) $(DUMA_OPTIONS) createconf.o -o createconf$(EXEPOSTFIX)
yann@572
    21
 
yann@572
    22
 tstheap$(EXEPOSTFIX): libduma.a tstheap.o
yann@572
    23
 	- $(RMFORCE) tstheap$(EXEPOSTFIX)
yann@1436
    24
@@ -532,7 +528,7 @@
yann@572
    25
 # define rules how to build objects for createconf
yann@572
    26
 #
yann@572
    27
 createconf.o:
yann@572
    28
-	$(CC) $(CFLAGS) $(DUMA_OPTIONS) -c createconf.c -o $@
yann@572
    29
+	$(HOSTCC) $(HOSTCFLAGS) $(DUMA_OPTIONS) -c createconf.c -o $@
yann@572
    30
 
yann@572
    31
 
yann@572
    32
 #