Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Sep 2009 16:38:17 +0200
From:      "Sebastian Herbszt" <herbszt@gmx.de>
To:        "Juergen Lock" <nox@jelal.kn-bremen.de>
Cc:        freebsd-emulation@FreeBSD.org, Juergen Lock <nox@jelal.kn-bremen.de>, Jung-uk Kim <jkim@FreeBSD.org>, qemu-devel@nongnu.org
Subject:   Re: experimental FreeBSD qemu-devel git head port update for testing
Message-ID:  <D0B039B7348146E8AA72C544C8EC37D7@FSCPC>
In-Reply-To: <20090912183516.GA65678@triton8.kn-bremen.de>
References:  <20090829222339.GA93608@triton8.kn-bremen.de> <20090902175621.GA63905@triton8.kn-bremen.de> <20090904193435.GA77708@triton8.kn-bremen.de> <2E5888455DA643CEB3960168C1AAB4E0@FSCPC> <20090912183516.GA65678@triton8.kn-bremen.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Replace own invokation of $cc with compile_prog (patch will likely not apply).

- Sebastian

@@ -37,7 +37,7 @@
 +  else
 +    libpcap=-lwpcap
 +  fi
-+  if ! $cc $ARCH_CFLAGS -o $TMPE $libpcap $TMPC 2> /dev/null ; then
++  if ! compile_prog "" "$libpcap" ; then
 +    echo
 +    echo "Error: Could not find pcap"
 +    echo "Make sure to have the pcap libs and headers installed."
@@ -52,7 +52,7 @@
 +  return (pcap_create("foo", errbuf) == (pcap_t *)0 ? 1 : 0);
 +}
 +EOF
-+  if $cc $ARCH_CFLAGS -o $TMPE $libpcap $TMPC 2> /dev/null ; then
++  if compile_prog "" "$libpcap" ; then
 +    pcap_create="yes"
 +  fi
 +  cat > $TMPC << EOF
@@ -61,10 +61,9 @@
 +#include <net/bpf.h>
 +int main(void) { return (BPF_MAJOR_VERSION); }
 +EOF
-+  if $cc $ARCH_CFLAGS -o $TMPE $TMPC 2> /dev/null ; then
++  if compile_prog "" "" ; then
 +    bpf="yes"
 +  fi
-+#  LIBS="$libpcap $LIBS"
 +  libs_softmmu="$libpcap $libs_softmmu"
 +fi # test "$pcap"
 +
@@ -72,7 +71,7 @@




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D0B039B7348146E8AA72C544C8EC37D7>