Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M6dA5-0000i8-5f for qemu-devel@nongnu.org; Wed, 20 May 2009 00:12:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M6dA0-0000aS-4e for qemu-devel@nongnu.org; Wed, 20 May 2009 00:12:12 -0400 Received: from [199.232.76.173] (port=54478 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M6d9z-0000Zx-RY for qemu-devel@nongnu.org; Wed, 20 May 2009 00:12:07 -0400 Received: from bay0-omc1-s12.bay0.hotmail.com ([65.54.246.84]:15222) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M6d9z-0005zA-Ah for qemu-devel@nongnu.org; Wed, 20 May 2009 00:12:07 -0400 Message-ID: Message-Id: <7887E782-7732-4B9C-81AC-227B3CBED716@hotmail.com> From: "C.W. Betts" In-Reply-To: <4A130FAC.3050705@codemonkey.ws> Content-Type: multipart/alternative; boundary=Apple-Mail-4-345015865 Mime-Version: 1.0 (Apple Message framework v935.3) Subject: Re: [Qemu-devel] Mac: your linker does not support --whole-archive or -z Date: Tue, 19 May 2009 22:11:44 -0600 References: <4A130FAC.3050705@codemonkey.ws> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --Apple-Mail-4-345015865 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On May 19, 2009, at 1:59 PM, Anthony Liguori wrote: > C.W. Betts wrote: >> I recently got my git tree up and running again, but I encountered >> this error when trying to configure it: >> Error: your linker does not support --whole-archive or -z. >> Please report to qemu-devel@nongnu.org >> >> I'm running Mac OS X 10.5.7 > > Does this patch help? Make sure to do configure and a full build. for some odd reason, it needs two -all_load in order to work. Like so: diff --git a/configure b/configure index 4111e7c..533fa35 100755 --- a/configure +++ b/configure @@ -1708,6 +1708,11 @@ elif check_linker_flags -z,allextract - z,defaultextract ; then # Solaris ld echo "ARLIBS_BEGIN=-Wl,-z,allextract" >> $config_mak echo "ARLIBS_END=-Wl,-z,defaultextract" >> $config_mak +elif check_linker_flags -all_load -all_load ; then + echo "ARLIBS_BEGIN=-all_load" >> $config_mak + # This is technically obsolete but it seems like it would be necessary +# echo "ARLIBS_END=-noall_load" >> $config_mak + echo "ARLIBS_END=" >> $config_mak else echo "Error: your linker does not support --whole-archive or -z." echo "Please report to qemu-devel@nongnu.org" > > > Regards, > > Anthony Liguori > >> >> >> > > diff --git a/configure b/configure > index 4111e7c..533fa35 100755 > --- a/configure > +++ b/configure > @@ -1708,6 +1708,11 @@ elif check_linker_flags -z,allextract - > z,defaultextract ; then > # Solaris ld > echo "ARLIBS_BEGIN=-Wl,-z,allextract" >> $config_mak > echo "ARLIBS_END=-Wl,-z,defaultextract" >> $config_mak > +elif check_linker_flags -all_load ; then > + echo "ARLIBS_BEGIN=-all_load" >> $config_mak > + # This is technically obsolete but it seems like it would be > necessary > +# echo "ARLIBS_END=-noall_load" >> $config_mak > + echo "ARLIBS_END=" >> $config_mak > else > echo "Error: your linker does not support --whole-archive or -z." > echo "Please report to qemu-devel@nongnu.org" --Apple-Mail-4-345015865 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable
On May 19, 2009, = at 1:59 PM, Anthony Liguori wrote:

C.W. Betts = wrote:
I recently got my git tree up and = running again, but I encountered this error when trying to configure = it:
Error: your linker does = not support --whole-archive or -z.
Please report to qemu-devel@nongnu.org

I'm running Mac OS X 10.5.7

Does this = patch help?  Make sure to do configure and a full = build.
for some odd reason, it needs two -all_load in order = to work.  Like so:

diff --git = a/configure b/configure
index 4111e7c..533fa35 = 100755
--- a/configure
+++ b/configure
@@ = -1708,6 +1708,11 @@ elif check_linker_flags -z,allextract = -z,defaultextract ; then
    # Solaris = ld
    echo "ARLIBS_BEGIN=3D-Wl,-z,allextract" = >> $config_mak
    echo = "ARLIBS_END=3D-Wl,-z,defaultextract" >> $config_mak
+elif = check_linker_flags -all_load -all_load ; then
+   =  echo "ARLIBS_BEGIN=3D-all_load" >> $config_mak
+   =  # This is technically obsolete but it seems like it would be = necessary
+#    echo "ARLIBS_END=3D-noall_load" >> = $config_mak
+    echo "ARLIBS_END=3D" >> = $config_mak
else
    echo "Error: = your linker does not support --whole-archive or = -z."
    echo "Please report to qemu-devel@nongnu.org"



Regards,

Anthony = Liguori





diff --git a/configure = b/configure
index 4111e7c..533fa35 100755
--- a/configure
+++ = b/configure
@@ -1708,6 +1708,11 @@ elif check_linker_flags = -z,allextract -z,defaultextract ; then
    # = Solaris ld
    echo = "ARLIBS_BEGIN=3D-Wl,-z,allextract" >> $config_mak
=     echo "ARLIBS_END=3D-Wl,-z,defaultextract" >> = $config_mak
+elif check_linker_flags -all_load ; then
+ =    echo "ARLIBS_BEGIN=3D-all_load" >> $config_mak
+ =    # This is technically obsolete but it seems like it = would be necessary
+#    echo "ARLIBS_END=3D-noall_load"= >> $config_mak
+    echo "ARLIBS_END=3D" >> = $config_mak
else
    echo "Error: your = linker does not support --whole-archive or -z."
=     echo "Please report to qemu-devel@nongnu.org"

= --Apple-Mail-4-345015865--