delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/10/15/06:44:37

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Fri, 15 Oct 2004 12:43:49 +0200
From: "Gerrit P. Haase" <freeweb AT nyckelpiga DOT de>
Reply-To: "Gerrit P. Haase" <freeweb AT nyckelpiga DOT de>
Organization: Esse keine toten Tiere
Message-ID: <1961933131256.20041015124349@familiehaase.de>
To: Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm>
CC: cygwin AT cygwin DOT com, libtool AT gnu DOT org
Subject: Re: Ping: Cygwin libtool / assembler problem with -DPIC
In-Reply-To: <416F172D.6060601@cwilson.fastmail.fm>
References: <501586262435 DOT 20041011122240 AT familiehaase DOT de> <191683852271 DOT 20041012152910 AT familiehaase DOT de> <20041013170135 DOT GA24352 AT orchestra DOT cs DOT caltech DOT edu> <416DA2C7 DOT 2090703 AT familiehaase DOT de> <416E2825 DOT 9030401 AT cwilson DOT fastmail DOT fm> <1911848409112 DOT 20041014131148 AT familiehaase DOT de> <416F172D DOT 6060601 AT cwilson DOT fastmail DOT fm>
MIME-Version: 1.0

Hi Charles,

yet another contra:

> You're missing the point.  *libtool* doesn't know that -DPIC means
> nothing for your code.  On some platforms, you really have to compile 
> DIFFERENT CODE, not just compile the same code in a different way 
> (-fpic), when you want to make a pic object.

Don't mix things up.  `-f' is a command line switch for gcc/ld/whatever,
`-D' defines a macro and is not a command line switch to any tool.
You can think of it as counterpart of a `#define PIC 1' in any included
header and doesn't affect the behaviour of gcc/ld/whatever.

So IMO -D is completely in the user domain, just like CFLAGS, ASFLAGS
et al.  If libtool needs a flag internally to distinguish between shared
a non shared code compilation, then use another one, e.g. LT_DO_LO_NOW?


> See above.  Libtool is providing a symbol that COULD, even on cygwin, be
> of some use.  You cannot specify it as an AM_CFLAGS because it should be
> "on" when building .lo's and "off" when building .o's -- and AM_CFLAGS
> don't allow that fine-grain control.  So libtool does it.

IMO the only relevant and also the only used flag on platforms where it
is needed is -fPIC?



> It is not used by gmp.  It might be used by ncurses.  Or Orbit.  Or any
> one of the thousands of other libtoolized packages.  You're asking me to
> unilaterally remove a feature from libtool that other packages may 
> already be using, because gmp doesn't use it and gets confused by it?

Yes.  Well, what I'm really asking for is to make libtool better, i.e.
do s.th. about the fact that a defined PIC macro breaks assembler code
e.g. to disable the macro automatically when assembler code is to be
compiled with libtool. 


Gerrit
-- 
=^..^=                                     http://nyckelpiga.de/donate.html


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019