qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Mac: your linker does not support --whole-archive or -z


From: C.W. Betts
Subject: Re: [Qemu-devel] Mac: your linker does not support --whole-archive or -z
Date: Tue, 19 May 2009 22:11:44 -0600


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 address@hidden

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 address@hidden"



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 address@hidden"


reply via email to

[Prev in Thread] Current Thread [Next in Thread]