tools/winegcc: fix linker for Haiku

Detlef Riekenberg wine.dev at web.de
Mon Sep 21 23:39:34 CDT 2009


On Mo, 2009-09-21 at 01:52 -0500, Austin English wrote:
> +#ifdef __HAIKU__
> +       strarray_add(link_args, "-lroot");
> +#else
> +       strarray_add(link_args, "-lm");
> +       strarray_add(link_args, "-lc");
> +#endif
> +     }

"autoconf.ac" was designed to avoid OS dependant "#ifdef".
Test for a function and use the resulting defines from "config.h", when
needed.

The linker failure message give you a function-name for testing.

-- 
 
By by ... Detlef




More information about the wine-devel mailing list