From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/2110 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: [RFC] pcc support for configure Date: Tue, 16 Oct 2012 12:17:43 +0200 Message-ID: <20121016101743.GM24157@port70.net> References: <20121015211231.08cbd071.idunham@lavabit.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1350382676 14344 80.91.229.3 (16 Oct 2012 10:17:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Oct 2012 10:17:56 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-2111-gllmg-musl=m.gmane.org@lists.openwall.com Tue Oct 16 12:18:03 2012 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1TO4Dr-0008PN-Ef for gllmg-musl@plane.gmane.org; Tue, 16 Oct 2012 12:18:03 +0200 Original-Received: (qmail 32568 invoked by uid 550); 16 Oct 2012 10:17:56 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 32558 invoked from network); 16 Oct 2012 10:17:56 -0000 Content-Disposition: inline In-Reply-To: <20121015211231.08cbd071.idunham@lavabit.com> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:2110 Archived-At: * Isaac Dunham [2012-10-15 21:12:31 -0700]: > +# Older PCC versions don't define __PIC__ with -fPIC > +# > +tryflag CFLAG_TEST "-x c" > +printf '#ifndef __PIC__\n__PIC__=0\n#endif\n' | \ > +$CC -E $CFLAG_TEST -fPIC - | grep __PIC__ && \ > +CFLAGS_SHARED_ALL="$CFLAGS_SHARED_ALL -D__PIC__=1" > + i don't think it's worth adding such checks pcc is still in development and the last release was very much broken when it gets more stable and widely used then such ckecks will make sense, right now we can just depend on the latest pcc even with clang we can easily say that we only support clang+llvm >= 3.1 (i assume the -ffreestanding bug is fixed in that)