[Top][All Lists]

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

Re: Building hurd-l4 on Debian GNU/Hurd

From: Marcus Brinkmann
Subject: Re: Building hurd-l4 on Debian GNU/Hurd
Date: Sat, 22 Jan 2005 18:42:03 +0100
User-agent: Wanderlust/2.10.1 (Watching The Wheels) SEMI/1.14.6 (Maruoka) FLIM/1.14.6 (Marutamachi) APEL/10.6 Emacs/21.3 (i386-pc-linux-gnu) MULE/5.0 (SAKAKI)

At Tue, 28 Dec 2004 23:01:00 +0000,
Barry deFreese wrote:
> Firstly, my apologies if this comes over in HTML.. :-(

I think it came in both plain text and HTML, which is fine.

> OK, so I was trying to build hurd-l4 on my GNU/Hurd box which was puking 
> making libc-parts.a.  Finally figured out that ar and nm were choking because 
> /lib/libc.a is just a linker script on GNU/Hurd (Thanks neal, marco, and 
> ams).  
> As a temporary fix, neal had me hack configure.ac to use /lib/libcrt.a vs. 
> libc.a but this probably needs a better solution.

Ah yes.  I knew this would happen.  Try the below patch, or just the
latest CVS.  If it doesn't work, complain :)

2005-01-22  Marcus Brinkmann  <address@hidden>

        * configure.ac: Support ripping parts from libcrt.a on GNU/Hurd.

Index: configure.ac
RCS file: /cvsroot/hurd/hurd-l4/configure.ac,v
retrieving revision 1.25
diff -u -p -r1.25 configure.ac
--- configure.ac        22 Jan 2005 00:14:29 -0000      1.25
+++ configure.ac        22 Jan 2005 17:36:53 -0000
@@ -33,6 +33,7 @@ maintainer_mode=${enable_maintainer_mode
 # Checks for programs.
 # FIXME: We should support setting the CFLAGS by the user.  But
 # -std=gnu99 and -O2 are required.
 CFLAGS="-std=gnu99 -Wall -g -O3"
@@ -63,10 +64,25 @@ if test "x$FIG2DEV" = xno; then
+# Set up the host information.
 # Checks for libraries.
 AC_MSG_CHECKING([for static GNU C library])
-STATIC_GLIBC=`$CC -print-file-name=libc.a`
-if test "x$STATIC_GLIBC" = xlibc.a; then
+echo $host_os
+case $host_os in
+  gnu*)
+    echo HALLO
+    # On the GNU/Hurd, libc.a is a linker script, the real C library
+    # can be found in libcrt.a instead.
+    static_libc=libcrt.a
+    ;;
+STATIC_GLIBC=`$CC -print-file-name=$static_libc`
+if test "x$STATIC_GLIBC" = "x$static_libc"; then
   AC_MSG_ERROR([Could not find static version of the GNU C library])
@@ -78,7 +94,6 @@ AC_SUBST(STATIC_GLIBC)
 # Checks for header files.
 # Checks for typedefs, structures, and compiler characteristics.

reply via email to

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