From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1989 invoked by alias); 26 May 2011 12:00:37 -0000 Received: (qmail 1979 invoked by uid 22791); 26 May 2011 12:00:36 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 26 May 2011 12:00:22 +0000 Received: (qmail 18870 invoked from network); 26 May 2011 12:00:21 -0000 Received: from unknown (HELO digraph.polyomino.org.uk) (joseph@127.0.0.2) by mail.codesourcery.com with ESMTPA; 26 May 2011 12:00:21 -0000 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.72) (envelope-from ) id 1QPZEh-00085I-VU; Thu, 26 May 2011 12:00:19 +0000 Date: Thu, 26 May 2011 12:42:00 -0000 From: "Joseph S. Myers" To: Jing Yu cc: =?UTF-8?B?RG91ZyBLd2FuICjpl5zmjK/lvrcp?= , Guozhi Wei , reply@codereview.appspotmail.com, gcc-patches Subject: Re: [google] Disable getpagesize() for Android toolchain (issue4515131) In-Reply-To: Message-ID: References: <20110524093904.2498F2072D@guozhiwei.sha.corp.google.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-05/txt/msg02015.txt.bz2 On Wed, 25 May 2011, Jing Yu wrote: > I am wondering how to disable build of libiberty for target? I Tear out all the target-libiberty code unconditionally? See and references therein; building target libiberty at all is a bug in my view. > In some environment we still need to build libstdc++ libraries, where > libiberty has to be built for target. Can we use #ifndef __ANDROID__ > to wrap around the getpagesize() definition? It is working for us. See what I said in . libstdc++-v3 does not use target libiberty; it uses one source file from the libiberty directory. -- Joseph S. Myers joseph@codesourcery.com