autoconf
[Top][All Lists]
Advanced

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

Not-really-cross-compilation issues


From: Peter Eisentraut
Subject: Not-really-cross-compilation issues
Date: Sat, 20 Jan 2001 00:22:58 +0100 (CET)

I've created a simple shared library that I placed at a non-standard
location for illustration purposes.  Imagine I want to configure a package
to link against that library:

$ cat configure.in
AC_INIT(.)

AC_PROG_CC

AC_OUTPUT

# With Autoconf 2.13:

$ LIBS='-L/tmp/obscure -ltest' ./configure
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... yes
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
updating cache ./config.cache
creating ./config.status

(everything okay)

# With Autoconf 2.50-to-be:

$ LIBS='-L/tmp/obscure -ltest' ./configure
checking for gcc... gcc
checking whether the C compiler works... configure: error: cannot run C 
compiled programs.
To enable cross compilation, use `--host'.

This is pretty silly.

-- 
Peter Eisentraut      address@hidden       http://yi.org/peter-e/




reply via email to

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