bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: test-string-c++.o:(.data+0x0): undefined reference to `rpl_memchr'


From: Bruno Haible
Subject: Re: test-string-c++.o:(.data+0x0): undefined reference to `rpl_memchr'
Date: Sat, 24 Apr 2010 16:15:43 +0200
User-agent: KMail/1.9.9

Simon Josefsson wrote:
> Adding AC_PROG_CXX to gltests/configure.ac solves
> the problem.  I see that ansi-c++-opt.m4 may be attempting to do setup a
> C++ compiler, but it doesn't seem to work when cross-compiling.

Well spotted! This should fix it:


2010-04-24  Bruno Haible  <address@hidden>

        ansi-c++-opt: Find correct compiler when cross-compiling.
        * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
        AC_CHECK_PROGS.
        Reported by Simon Josefsson.

--- m4/ansi-c++.m4.orig Sat Apr 24 16:12:38 2010
+++ m4/ansi-c++.m4      Sat Apr 24 16:12:23 2010
@@ -1,4 +1,4 @@
-# ansi-c++.m4 serial 4
+# ansi-c++.m4 serial 5
 dnl Copyright (C) 2002-2003, 2005, 2010 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -48,7 +48,9 @@
     if test -n "$CCC"; then
       CXX="$CCC"
     else
-      AC_CHECK_PROGS([CXX], [g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r 
xlC], [:])
+      AC_CHECK_TOOLS([CXX],
+                     [g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC],
+                     [:])
     fi
   fi
   if test "$CXX" != ":"; then




reply via email to

[Prev in Thread] Current Thread [Next in Thread]