tools/winegcc: fix linker for Haiku
Austin English
austinenglish at gmail.com
Mon Sep 21 01:52:10 CDT 2009
See bug 20116.
--
-Austin
-------------- next part --------------
diff --git a/tools/winegcc/winegcc.c b/tools/winegcc/winegcc.c
index ad4aeb7..71e2a3e 100644
--- a/tools/winegcc/winegcc.c
+++ b/tools/winegcc/winegcc.c
@@ -920,9 +920,13 @@ static void build(struct options* opts)
if (!opts->nostdlib)
{
- strarray_add(link_args, "-lm");
- strarray_add(link_args, "-lc");
- }
+#ifdef __HAIKU__
+ strarray_add(link_args, "-lroot");
+#else
+ strarray_add(link_args, "-lm");
+ strarray_add(link_args, "-lc");
+#endif
+ }
spawn(opts->prefix, link_args, 0);
strarray_free (link_args);
More information about the wine-patches
mailing list