delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/06/18/18:42:26

From: "Mark E." <snowball3 AT bigfoot DOT com>
To: djgpp-workers AT delorie DOT com
Date: Mon, 18 Jun 2001 18:42:20 -0400
MIME-Version: 1.0
Subject: Re: Package of libtool?
Message-ID: <3B2E4B8C.24386.476E51@localhost>
In-reply-to: <CAEGKOHJKAAFPKOCLHDIKEHECEAA.tim.van.holder@pandora.be>
References: <3B2E5B57 DOT B99F6EB0 AT phekda DOT freeserve DOT co DOT uk>
X-mailer: Pegasus Mail for Win32 (v3.12c)
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> that should be handled in binutils (ie add support to bfd) or gcc (ie
> disallow -fPIC for a djgpp host).

My option is the compiler should reject -fPIC. It's easy enough to do:

Index: djgpp.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/djgpp.h,v
retrieving revision 1.26
diff -c -p -r1.26 djgpp.h
*** djgpp.h	2001/05/20 19:54:04	1.26
--- djgpp.h	2001/06/18 22:41:55
*************** do \
*** 280,285 ****
--- 280,289 ----
        {	\
          warning ("-mbnu210 is ignored (option is obsolete)."); \
        }	\
+     if (flag_pic) \
+       { \
+         error ("-f%s is not supported by this target", (flag_pic > 1) ? 
"PIC" : "pic"); \
+       } \
    } \
  while (0)
  

- Raw text -


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