Article View: gnu.gcc.help
Article #49483Q: How to have gcc and glibc on their own, not mixed with system
From: Harald Kirsch
Date: Tue, 25 Jan 1994 11:10
Date: Tue, 25 Jan 1994 11:10
42 lines
2404 bytes
2404 bytes
Summary:
How must gcc be installed to rely solely on glibc when used,
taking nothing from the systems libc? How can this be done
without replacing the systems cc and libc?
Recently I installed gcc and then glibc on our sun-sunos4.1 machines.
Of course I did not replace suns cc and libc with gcc and glibc, but
installed the GNU SW in a different place.
Only then I realized that gcc was somehow configured to still use the
original SUN library. Well, I thought, use the right options and it will
take glibc. I thought it would suffice to use
-I/t/glibc/include -L/t/glibc/lib
as options for the compiler (Yes, /t/glibc is the place where I
installed glibc!). However, when linking I discovered that gcc still
uses /lib/crt0.o as a startup, instead of /t/glibc/lib/crt0.o which is
wrong in this case.
I'm sure I can force gcc or ld to use /t/glibc/lib/crt0.o with some more
options, but actually I would prefer to install gcc in a way that it is
totally disconnected from the systems cc and libc and finds its
header-files and libraries in /t/glibc/{lib,include} by default.
Can this be done easily? Do I have to install gcc as a cross-compiler in
this case? Can I use configure or do I have to massage the Makefile by
hand?
Thanks a lot for any hint,
Harald Kirsch
------------------------------------------------------------------------
Harald Kirsch kir@iitb.fhg.de +49 721 6091 384
FhG/IITB Fraunhoferstr. 1 76131 Karlsruhe
--
------------------------------------------------------------------------
Harald Kirsch kir@iitb.fhg.de +49 721 6091 384
FhG/IITB Fraunhoferstr. 1 76131 Karlsruhe
P.S.: Ist P=NP wenn die Raumzeit 11-dimensional ist?
Technical Details
Message-ID:
<KIR.94Jan25121049@dsd101.iitb.fhg.de>Path:
arc1-ca.pugleaf.net!gmd.de!xlink.net!news.fhg.de!iitb.fhg.de!iitb!kirShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,a9977215fccffaa1,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1994-01-25 13:27:01 PST Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!news.fhg.de!iitb.fhg.de!iitb!kir From: kir@iitb.fhg.de (Harald Kirsch) Newsgroups: gnu.gcc.help Subject: Q: How to have gcc and glibc on their own, not mixed with system Date: 25 Jan 1994 11:10:48 GMT Organization: Fraunhofer-Institut fuer Informations- und Datenverarbeitung Lines: 42 Message-ID: <KIR.94Jan25121049@dsd101.iitb.fhg.de> NNTP-Posting-Host: dsd101.iitb.fhg.de