From: lrtaylor@micron.com
To: <caph@kerridge.com>, <gcc-help@gcc.gnu.org>
Subject: RE: Compiling libraries
Date: Fri, 17 Dec 2004 17:22:00 -0000 [thread overview]
Message-ID: <363801FFD7B74240A329CEC3F7FE4CC403096597@ntxboimbx07.micron.com> (raw)
That can depend on what platform your running on and which version of
GCC you're using. You also probably don't what to change CFLAGS.
Usually LDFLAGS is used for specifying linking options. However,
generally, the most common options to use for creating a shared library
are '-G' and '-shared'. Try -G first. If that doesn't work. Try
'-shared'. Don't use both at the same time.
Good luck,
Lyle
-----Original Message-----
From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] On
Behalf Of Craig Phillips
Sent: Friday, December 17, 2004 4:42 AM
To: gcc-help@gcc.gnu.org
Subject: Compiling libraries
Hi,
What amendments should i make to the Makefile CFLAGS in order to get it
to link
the objects into a library .so? I have modified a program so it can be
loaded
dynamically as a library but am having trouble determining what to amend
in the
Makefile.
Cheers
Craig
next reply other threads:[~2004-12-17 17:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-17 17:22 lrtaylor [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-12-17 11:42 Craig Phillips
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=363801FFD7B74240A329CEC3F7FE4CC403096597@ntxboimbx07.micron.com \
--to=lrtaylor@micron.com \
--cc=caph@kerridge.com \
--cc=gcc-help@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).