From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59787) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XK5xG-0006Qy-4R for qemu-devel@nongnu.org; Wed, 20 Aug 2014 09:29:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XK5x9-0001Zd-Va for qemu-devel@nongnu.org; Wed, 20 Aug 2014 09:29:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:3579) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XK5x9-0001ZU-Ol for qemu-devel@nongnu.org; Wed, 20 Aug 2014 09:29:27 -0400 Message-ID: <53F4A2B3.3010000@redhat.com> Date: Wed, 20 Aug 2014 15:29:23 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1408528887-22200-1-git-send-email-famz@redhat.com> <1408528887-22200-6-git-send-email-famz@redhat.com> In-Reply-To: <1408528887-22200-6-git-send-email-famz@redhat.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 5/6] build-sys: Change libqemuutil.a to qemuutil.o and link whole object List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng , qemu-devel@nongnu.org Cc: kwolf@redhat.com, mjt@tls.msk.ru, stefanha@redhat.com Il 20/08/2014 12:01, Fam Zheng ha scritto: > + > +qemuutil.o: CC_REL_FLAGS := -Wl,-r Why the target-specific rule? > +qemuutil.o: $(util-obj-y) > + $(call quiet-command,$(CC) -nostdlib $(CC_REL_FLAGS) -o $@ $^," LD -r $(TARGET_DIR)$@") > I think either you have LD_REL := $(CC) -nostdlib -Wl,-r (as opposed to "LD_REL := $(LD) -r" for example) or you do not need to put -Wl,-r in a separate variable. Paolo