From: Brendan O'Dea <bod@debian.org>
Date: Sat, 11 Feb 2006 00:37:15 +0000 (+1100)
Subject: Don't add -fPIC if already present.
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4cd664023ef35f7e0d7875e942c9b13e8b794b0f;p=p5sagit%2Fp5-mst-13.2.git

Don't add -fPIC if already present.

Subject: [PATCH] 5.8.8: Debian patches
From: "Brendan O'Dea" <bod@debian.org>
Message-ID: <20060210133715.GA6826@londo.c47.org>

p4raw-id: //depot/perl@27212
---

diff --git a/hints/linux.sh b/hints/linux.sh
index c894fde..b2bcf84 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -260,6 +260,7 @@ case "`uname -m`" in
 sparc*)
 	case "$cccdlflags" in
 	*-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;;
+	*-fPIC*) ;;
 	*)	 cccdlflags="$cccdlflags -fPIC" ;;
 	esac
 	;;