From mboxrd@z Thu Jan 1 00:00:00 1970 From: Junio C Hamano Subject: Re: [PATCH] Makefile: set USE_PIC on Linux x86_64 for linking with Git.pm Date: Wed, 28 Jun 2006 11:53:00 -0700 Message-ID: <7vr719159v.fsf@assigned-by-dhcp.cox.net> References: <20060628183557.GA5713@fiberbit.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: git@vger.kernel.org X-From: git-owner@vger.kernel.org Wed Jun 28 20:53:10 2006 Return-path: Envelope-to: gcvg-git@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fvf9w-0000xX-IX for gcvg-git@gmane.org; Wed, 28 Jun 2006 20:53:09 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750997AbWF1SxE (ORCPT ); Wed, 28 Jun 2006 14:53:04 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750993AbWF1SxE (ORCPT ); Wed, 28 Jun 2006 14:53:04 -0400 Received: from fed1rmmtao06.cox.net ([68.230.241.33]:52625 "EHLO fed1rmmtao06.cox.net") by vger.kernel.org with ESMTP id S1750997AbWF1SxB (ORCPT ); Wed, 28 Jun 2006 14:53:01 -0400 Received: from assigned-by-dhcp.cox.net ([68.4.9.127]) by fed1rmmtao06.cox.net (InterMail vM.6.01.06.01 201-2131-130-101-20060113) with ESMTP id <20060628185300.ISRA6235.fed1rmmtao06.cox.net@assigned-by-dhcp.cox.net>; Wed, 28 Jun 2006 14:53:00 -0400 To: Marco Roeland In-Reply-To: <20060628183557.GA5713@fiberbit.xs4all.nl> (Marco Roeland's message of "Wed, 28 Jun 2006 20:35:57 +0200") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: Marco Roeland writes: > In commit 6294a10 it was noted that "on x86-64 it seems that Git.xs does > not link without compiling the main git objects with -fPIC". Set it > therefore automatically on this platform. I agree with it in principle but was too lazy to do that myself. I wonder it should be inside Linux, though. > ifeq ($(uname_S),Linux) > NO_STRLCPY = YesPlease > + ifneq (,$(findstring x86_64,$(uname_M))) > + USE_PIC = YesPlease > + endif > endif