qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Joachim Henke <j-o@users.sourceforge.net>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] BSD linking fix
Date: Sun, 22 Apr 2007 18:12:44 +0200	[thread overview]
Message-ID: <5643D4E8-2DE4-42FB-8FFE-52CD782BD341@users.sourceforge.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 1061 bytes --]

Hello,

it seems that this change:

http://lists.gnu.org/archive/html/qemu-devel/2007-04/msg00023.html

breaks linking in Mac OS X (PPC in my case):

/usr/bin/ld: warning multiple definitions of symbol _ldexpl$LDBL128
libqemu.a(softfloat-native.o) definition of _ldexpl$LDBL128 in  
section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libmx.dylib(single  
module) definition of _ldexpl$LDBL128
/usr/bin/ld: warning multiple definitions of symbol _llrintl$LDBL128
libqemu.a(softfloat-native.o) definition of _llrintl$LDBL128 in  
section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libmx.dylib(single  
module) definition of _llrintl$LDBL128
/usr/bin/ld: warning multiple definitions of symbol _lrintl$LDBL128
libqemu.a(softfloat-native.o) definition of _lrintl$LDBL128 in  
section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libmx.dylib(single  
module) definition of _lrintl$LDBL128


The attached patch works for me.


Kind regards,

Jo


-- 
Joachim Henke
http://base91.sourceforge.net/j-o/

[-- Attachment #2: softfloat.diff --]
[-- Type: application/octet-stream, Size: 367 bytes --]

--- fpu/softfloat-native.c
+++ fpu/softfloat-native.c
@@ -31,5 +31,5 @@
 #define remainderf(fa, fb)	((float)remainder(fa, fb))
 #define rintf(f)		((float)rint(f))
-#if !defined(__sparc__) && HOST_SOLARIS < 10
+#if !defined(__sparc__) && defined(HOST_SOLARIS) && HOST_SOLARIS < 10
 extern long double rintl(long double);
 extern long double scalbnl(long double, int);

[-- Attachment #3: Type: text/plain, Size: 2 bytes --]




                 reply	other threads:[~2007-04-22 16:19 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5643D4E8-2DE4-42FB-8FFE-52CD782BD341@users.sourceforge.net \
    --to=j-o@users.sourceforge.net \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).