Article View: gnu.gcc.help
Article #50291Dependence on libgcc.a
From: Mitchell N. Perilstein
Date: Mon, 01 Nov 1993 23:26
Date: Mon, 01 Nov 1993 23:26
32 lines
1879 bytes
1879 bytes
We would prefer to use gcc as our commercial production compiler. This
is fine for executables, however, we also ship static and dynamic
libraries to our customers. Our customers can't all use gcc to link.
In order to allow the customer to link gcc-compiled code with an
arbitrary linker, it seems we may need to ship the libarary. Are there
other options than these?
1. Ship libgcc.a as a separate file along with our libraries, and
require our customer to link with it also.
2. Archive the libgcc.a into our libraries.
Option 1 complicates life for the customer by introducing another
library. Option 2 might cause problems with version mismatch in the
event the customer has gcc different from ours. Option 1 may display
this problem also.
We can't require the customer to link using gcc; they have their own
environments and requirements. We have no problems supplying gcc to
them as a convenience, but if they want to use stock cc/ld or brand X we
must allow for it.
The -fno-builtins switch does not completely remove lib dependence of
the generated code; there's still varargs and ___main, etc.
Any ideas?
Thanks,
---
Mitchell N. Perilstein | mitch@clsi.com | Ask about s/w patents
Compass Design Automation, Inc. | 410-992-5700 x225 | and interface copyrights.
Technical Details
Message-ID:
<MNP.93Nov1182607@procyon.tibu>Path:
arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!clsi!mnpShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,c198a63f6808902,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-11-01 15:53:46 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!clsi!mnp From: mnp@clsi.COM (Mitchell N. Perilstein) Subject: Dependence on libgcc.a Message-ID: <MNP.93Nov1182607@procyon.tibu> Lines: 32 Sender: usenet@clsi.COM Organization: Compass Design Automation, Inc. Distribution: gnu Date: Mon, 1 Nov 93 23:26:29 GMT