[Top][All Lists]
[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: |
Anthony Liguori |
Subject: |
Re: [Qemu-devel] Mac: your linker does not support --whole-archive or -z |
Date: |
Tue, 19 May 2009 14:59:40 -0500 |
User-agent: |
Thunderbird 2.0.0.21 (X11/20090320) |
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.
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"