From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M6VTY-0003sb-QN for qemu-devel@nongnu.org; Tue, 19 May 2009 15:59:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M6VTU-0003qL-AL for qemu-devel@nongnu.org; Tue, 19 May 2009 15:59:48 -0400 Received: from [199.232.76.173] (port=48524 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M6VTU-0003qI-2z for qemu-devel@nongnu.org; Tue, 19 May 2009 15:59:44 -0400 Received: from rv-out-0708.google.com ([209.85.198.248]:50799) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M6VTT-0000Aj-Mg for qemu-devel@nongnu.org; Tue, 19 May 2009 15:59:43 -0400 Received: by rv-out-0708.google.com with SMTP id c5so5444rvf.22 for ; Tue, 19 May 2009 12:59:42 -0700 (PDT) Message-ID: <4A130FAC.3050705@codemonkey.ws> Date: Tue, 19 May 2009 14:59:40 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] Mac: your linker does not support --whole-archive or -z References: In-Reply-To: Content-Type: multipart/mixed; boundary="------------010704060108030203030305" List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "C.W. Betts" Cc: qemu-devel@nongnu.org This is a multi-part message in MIME format. --------------010704060108030203030305 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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. Regards, Anthony Liguori > > > --------------010704060108030203030305 Content-Type: text/x-patch; name="mac-osx.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="mac-osx.patch" 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" --------------010704060108030203030305--