[Top][All Lists]

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

Re: Initial cross-compilation support

From: Nikita Karetnikov
Subject: Re: Initial cross-compilation support
Date: Fri, 29 Mar 2013 01:00:59 +0400

> Can you run ‘file’ on libgcc.a (or one of the .o files it contains)?
> Can you check in the glibc log whether a -mabi flag is passed?

Oh, I forgot to add the -K option.  There are no logs.

> You may need to explicitly add -mabi=64 for glibc.  It should be
> possible to do it with something like:

>   #:configure-flags '("CFLAGS=-mabi=64 -g -O2")

Which 'glibc' should be used?

I tried to use

       ((#:configure-flags flags)
        `(cons ,(string-append "CFLAGS=-mabi=64 -g -O2 " "--host=" target)

in 'cross-libc' ('cross-base.scm'), but it failed:

checking for suffix of object files... configure: error: in 
configure: error: cannot compute suffix of object files: cannot compile

I reread the quasiquote-related part of the manual, but I still fail to
understand how to add 'CFLAGS' properly.

Attachment: pgp4eafOQ3MmT.pgp
Description: PGP signature

reply via email to

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