From: Johannes W. <ja...@mo...> - 2010-04-10 14:47:17
|
On Fri, Apr 09, 2010 at 11:02:37PM +0400, Gregory Petrosyan wrote: > > Some platforms need linking flags after source file. > That's strange... What are these weird platforms? Wouldn't this break saner > ones? gcc 3.4.3 / SunOS 5.11. But I vaguely remember that I had something like that on another platform sometime ago. I'm pretty sure it doesn't brake saner systems, as in any sane system link flag order shouldn't matter :-). > > Subject: [PATCH 3/3] configure: more robust curses checking > > > > + if try_compile_link "char $__func(); char (*f)() = $__func; int main(int argc, char *argv[]) { return f != $__func; }" "$@" && ./$__exe > > Is this 'char' here suitable for all possible functions? (Read: is C type > system relaxed enough?) It's pretty much stolen from autoconf, so I guess it's good enough for us. I've tested it on Cygwin, SunOS and Linux so far. -- Johannes Weißl |