From: Damjan Jovanovic Subject: [3/3] winegcc: use the libm found by configure Message-Id: Date: Fri, 22 Jul 2011 05:23:03 +0200 Changelog: * winegcc: use the libm found by configure Gets Wine on Haiku to compile a little further. A future patch will have to deal with "-lc" in winegcc which also breaks compilation. Damjan Jovanovic From b00ffebf90b340a2ccbb2fe03260fc23a4b16695 Mon Sep 17 00:00:00 2001 From: Damjan Jovanovic Date: Fri, 22 Jul 2011 05:11:49 +0200 Subject: [PATCH 3/3] winegcc: use the libm found by configure --- tools/winegcc/winegcc.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/tools/winegcc/winegcc.c b/tools/winegcc/winegcc.c index 9e75509..0bd3aaa 100644 --- a/tools/winegcc/winegcc.c +++ b/tools/winegcc/winegcc.c @@ -1047,7 +1047,8 @@ static void build(struct options* opts) if (!opts->nostdlib) { - strarray_add(link_args, "-lm"); + if (LIBM[0]) + strarray_add(link_args, LIBM); strarray_add(link_args, "-lc"); } -- 1.7.4.1