From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6149 invoked by alias); 8 Jan 2011 17:04:45 -0000 Received: (qmail 6136 invoked by uid 22791); 8 Jan 2011 17:04:42 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mail.synsport.com (HELO shepard.synsport.net) (208.69.230.148) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 08 Jan 2011 17:04:37 +0000 Received: from [192.168.0.11] (atoulouse-256-1-124-179.w90-45.abo.wanadoo.fr [90.45.131.179]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by shepard.synsport.net (Postfix) with ESMTP id AFBFF438BE for ; Sat, 8 Jan 2011 11:04:34 -0600 (CST) Message-ID: <4D289907.2030508@marino.st> Date: Sat, 08 Jan 2011 17:04:00 -0000 From: John Marino User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: Building gcc 4.6 without libiconv Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2011-01/txt/msg00083.txt.bz2 I'm trying to build gcc 4.6 without libiconv. My understanding is that this library is only required for nls support and the java frontend. I'm configuring with --disable-nls and I'm not building the java language. I've tried --without-libiconv-prefix I've tried --with-libiconv-prefix=no I've tried setting with-libiconv-prefix to a directory where libiconv doesn't exist. Yet the gcc/configure script keeps picking up -liconv. It exists in the same library directory as libmpc, libmpfr, libgmp. So my questions are simple: 1) can somebody confirm libiconv isn't needed beyond nls and java? 2) Is so, why is configure script still looking for it if those options are disabled? 3) if so, short of patching the configure script, how can gcc be told to not link libiconv.so even if it finds it in a standard location? Thanks for any help provided! John