tools/winegcc: fix linker for Haiku

Austin English austinenglish at gmail.com
Tue Sep 22 00:16:40 CDT 2009


On Mon, Sep 21, 2009 at 11:39 PM, Detlef Riekenberg <wine.dev at web.de> wrote:
> 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.

Ah, good call. I'll rework it, thanks.

-- 
-Austin



More information about the wine-devel mailing list