From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id 70B2D2F3E4 for ; Wed, 3 Jan 2001 05:17:58 -0500 (EST) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id f03AHwT19319 for axp-list@listman.redhat.com; Wed, 3 Jan 2001 05:17:58 -0500 Received: from relay1.teleport.com (relay1.teleport.com [192.108.254.28]) by mail.redhat.com (8.11.0/8.8.7) with SMTP id f03AHvD19315 for ; Wed, 3 Jan 2001 05:17:58 -0500 Received: (qmail 26052 invoked by uid 5); 3 Jan 2001 10:17:56 -0000 Received: from evrtwa1-ar4-233-089.dsl.gtei.net(4.41.233.89), claiming to be "teleport.com" via SMTP by relay1.teleport.com, id smtpdAAACf78e_; Wed Jan 3 02:17:48 2001 Message-ID: <3A52FC64.14001F04@teleport.com> Date: Wed, 03 Jan 2001 02:18:12 -0800 From: Alan Young X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.18 alpha) X-Accept-Language: en, en-US, en-GB MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: stopping ./configure from choking on use of ccc/cxx References: <3A528EA6.DE1AED22@alphalinux.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0beta4 Precedence: bulk Reply-To: axp-list@redhat.com List-Id: Linux and Red Hat on Alpha processors Interesting...I had not time to look into the libtool issue. What you have found is interesting. I'm a bit confused about the steps you have described. Are you saying to do 1) alias gcc=ccc, 2) run ./configure, then 3) run ./ltconfig or are you saying do 3) before 2). If I do 3 before 2, then configure wipes out the libtool that ltconfig built. It's doing it when I try this procedure on SDL. Also if I do 3 after 2, then the libtool file does not match what came out of configure. (I'm not sure if the mismatch is really a problem or not.) Something strange is going on in configure. There's something in configure that says if I'm not gcc, then don't create a shared lib. It gets worse if you specify CFLAGS in the environment, then it doesn't work at all (gcc pukes on my -arch switch). It seems to be calling /usr/bin/gcc directly. Alan Peter Petrakis wrote: > > I know it's a long subject. Plenty enough keywords for a search engine > to pick up. > > Alan Young had posted to the list previously a procedure that would > allow configure to proceed when you used ccc. I've found a little > easier way of doing the same thing. > > Say you want to build something using ccc. First alias gcc to ccc > > alias gcc=ccc > > Now configure depends on libtool (which defaults are usually NOT > changed). What happens is autoconf doesnt recognize ccc and > returns "can't build shared libraries". The quick and easy workaround? > > In the top level of the package you're trying to build do. > > ./ltconfig --with-gcc ltmain.sh > > You could use your own libtool instead (recommended) which is probably > more up to date than whats provide with some packages. > > /usr/share/libtool/ltconfig --with-gcc /usr/share/libtool/ltmain.sh > > now when you run ./configure it will load what libtool has configured > and accept it. Once you do this ccc and cxx work. > > I hope someone finds this usefull and if anyone needs further > clarification just email. > > Peter > -- > www.alphalinux.org > Peter Petrakis Warrior/Engineer ppetrakis@alphalinux.org > "Oh my God! They killed Xena! You bastards!!" > " Who the hell are you!? Name's Ash Housewares..."