[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: autoconf attempts to execute a stdlib that it only compiled, and did
From: |
Stepan Kasal |
Subject: |
Re: autoconf attempts to execute a stdlib that it only compiled, and did not link |
Date: |
Mon, 5 Sep 2005 10:28:58 +0200 |
User-agent: |
Mutt/1.4.1i |
Hello,
On Mon, Sep 05, 2005 at 08:41:18AM +0200, Tim Van Holder wrote:
> > -[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdlib.h>
> > +[AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stdlib.h>
> > #include <stdarg.h>
> > #include <string.h>
> > #include <float.h>
> This is wrong for two reasons:
> - It's a test for _headers_, so linking is not what's required
Yes, I agree.
> - Any linking tests break cross-compilation,
Though I agree that the proposed change shouldn't be accepted, I think
this reason is not correct: linking should work in cross compiling
environment. It's _run_ which is (almost) impossible.
Have a nice day,
Stepan Kasal