qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Thiemo Seufer <ths@networkno.de>
To: andrzej zaborowski <balrog@zabor.org>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] FreeBSD Support
Date: Sat, 3 Mar 2007 22:12:59 +0000	[thread overview]
Message-ID: <20070303221259.GB27476@networkno.de> (raw)
In-Reply-To: <fb249edb0702251612v73b49f8eue6f6c8b2f567220f@mail.gmail.com>

andrzej zaborowski wrote:
> Hi,
> 
> On 20/02/07, Christopher Olsen <cwolsen@domainatlantic.com> wrote:
> >Ok FreeBSD Support round one..
> >
> >Be gentle this is my first attempt at working with the rest of this
> >community..
> >
> >Files it modifies and the reasons are as follows
> >
> >configure - Adds HOST_FREEBSD type to alter included libraries FreeBSD does
> >not need -ltr
> >Makefile.target - Once again uses HOST_FREEBSD to avoid including -ltr
> 
> See http://lists.gnu.org/archive/html/qemu-devel/2006-11/msg00166.html
> - I believe this is a more appropriate way to select -lrt.

The solaris part there looked a bit inconsistent, is the appended
version ok?


Thiemo


Index: qemu-work/Makefile
===================================================================
--- qemu-work.orig/Makefile	2007-02-11 16:10:55.000000000 +0000
+++ qemu-work/Makefile	2007-03-02 21:07:26.000000000 +0000
@@ -24,11 +24,7 @@
 DOCS=
 endif
 
-ifndef CONFIG_DARWIN
-ifndef CONFIG_WIN32
-LIBS+=-lrt
-endif
-endif
+LIBS+=$(AIOLIBS)
 
 all: $(TOOLS) $(DOCS) recurse-all
 
Index: qemu-work/Makefile.target
===================================================================
--- qemu-work.orig/Makefile.target	2007-03-02 20:57:01.000000000 +0000
+++ qemu-work/Makefile.target	2007-03-02 21:01:22.000000000 +0000
@@ -436,6 +436,7 @@
 endif
 
 VL_LDFLAGS=
+VL_LIBS=$(AIOLIBS)
 # specific flags are needed for non soft mmu emulator
 ifdef CONFIG_STATIC
 VL_LDFLAGS+=-static
@@ -446,7 +447,7 @@
 ifndef CONFIG_DARWIN
 ifndef CONFIG_WIN32
 ifndef CONFIG_SOLARIS
-VL_LIBS=-lutil -lrt
+VL_LIBS+=-lutil
 endif
 endif
 endif
Index: qemu-work/configure
===================================================================
--- qemu-work.orig/configure	2007-03-02 20:57:00.000000000 +0000
+++ qemu-work/configure	2007-03-02 21:07:10.000000000 +0000
@@ -159,6 +159,12 @@
   fi
 fi
 
+if [ "$bsd" = "yes" -o "$darwin" = "yes" -o "$solaris" = "yes" -o "$mingw32" = "yes" ] ; then
+    AIOLIBS=
+else
+    AIOLIBS="-lrt"
+fi
+
 # find source path
 source_path=`dirname "$0"`
 if [ -z "$source_path" ]; then
@@ -653,6 +659,7 @@
 echo "CFLAGS=$CFLAGS" >> $config_mak
 echo "LDFLAGS=$LDFLAGS" >> $config_mak
 echo "EXESUF=$EXESUF" >> $config_mak
+echo "AIOLIBS=$AIOLIBS" >> $config_mak
 if test "$cpu" = "i386" ; then
   echo "ARCH=i386" >> $config_mak
   echo "#define HOST_I386 1" >> $config_h

  reply	other threads:[~2007-03-03 22:10 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-16 19:02 [Qemu-devel] QEMU: VNC Christopher Olsen
2007-02-16 20:57 ` Anthony Liguori
2007-02-18 20:36 ` Christopher Olsen
2007-02-18 23:08   ` Anthony Liguori
2007-02-18 23:53     ` Christopher Olsen
2007-02-19  0:14       ` Johannes Schindelin
2007-02-19  0:30         ` Christopher Olsen
2007-02-19  0:41           ` Johannes Schindelin
2007-02-19  2:01           ` Anthony Liguori
2007-02-19  2:11             ` Johannes Schindelin
2007-02-19  2:48               ` Anthony Liguori
2007-02-19 12:19                 ` Christopher Olsen
2007-02-19 14:53                   ` Johannes Schindelin
2007-02-19 17:16                     ` Christopher Olsen
2007-02-19 17:30               ` Daniel P. Berrange
2007-02-19 17:41                 ` Christopher Olsen
2007-02-19 19:09                   ` Daniel P. Berrange
2007-02-19 19:29                     ` Christopher Olsen
2007-02-19 22:52                     ` Fabrice Bellard
2007-02-19 23:37                       ` Christopher Olsen
2007-02-20  0:36                         ` Daniel P. Berrange
2007-02-20  0:45                           ` Anthony Liguori
2007-02-20  0:53                             ` Christopher Olsen
2007-02-20  1:05                             ` Daniel P. Berrange
2007-02-20  1:11                               ` Johannes Schindelin
2007-02-20  1:18                                 ` Christopher Olsen
2007-02-20 19:46                                 ` Joe Batt
2007-02-20  1:15                               ` [Qemu-devel] FreeBSD Support Christopher Olsen
2007-02-20  1:46                                 ` Paul Brook
2007-02-20  2:10                                   ` Christopher Olsen
2007-02-20  2:41                                     ` Paul Brook
2007-02-20  3:26                                       ` Christopher Olsen
2007-02-24 19:08                                         ` Juergen Lock
2007-02-24 20:54                                           ` Leonardo Reiter
2007-02-26  0:12                                         ` andrzej zaborowski
2007-03-03 22:12                                           ` Thiemo Seufer [this message]
2007-03-05  7:38                                             ` andrzej zaborowski
2007-02-19 23:58                       ` [Qemu-devel] QEMU: VNC Johannes Schindelin
2007-02-19  0:11   ` Johannes Schindelin
2007-02-19  0:25     ` Christopher Olsen
  -- strict thread matches above, loose matches on Subject: below --
2007-02-20  2:08 [Qemu-devel] FreeBSD Support Ben Taylor
2007-02-20  2:15 ` Christopher Olsen
2007-02-20  5:14 ` M. Warner Losh

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=20070303221259.GB27476@networkno.de \
    --to=ths@networkno.de \
    --cc=balrog@zabor.org \
    --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).