Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Mar 1999 12:14:07 +0200
From:      Graham Wheeler <gram@cdsec.com>
To:        hackers@freebsd.org
Subject:   [Fwd: C++ global constructors and shared libraries]
Message-ID:  <36E7976F.434678BE@cdsec.com>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------8EB273D000AF610B01F3FE9E
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Graham Wheeler wrote:
> 
Niall Smart wrote:
>
> Graham Wheeler wrote:
> >
> > Niall Smart wrote:
> >
> > > niall% g++ -c -fpic libfoo.cc
> > > niall% g++ -shared libfoo.o -o libfoo.so
> >
> > I am using the bsd.lib.mk and related include files for the Make;
> > certainly I don't think that there is anything strange in these.
>
> Well, why don't you try the exact same commands I used.

Okay, I have hacked my own copy of bsd.lib.mk to use g++ to make the
library rather than ld, and it works now! Thanks...

--
Dr Graham Wheeler                          E-mail: gram@cdsec.com
Citadel Data Security                      Phone:  +27(21)423-6065/6/7
Firewalls/Virtual Private Networks         Fax:    +27(21)24-3656
Internet/Intranet Network Specialists
Data Security Products                     WWW:    http://www.cdsec.com/
--------------8EB273D000AF610B01F3FE9E
Content-Type: message/rfc822
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Message-ID: <36E7972F.D69E69CE@cdsec.com>
Date: Thu, 11 Mar 1999 12:13:03 +0200
From: Graham Wheeler <gram@cdsec.com>
X-Mailer: Mozilla 4.08 [en] (X11; I; FreeBSD 2.2.8-RELEASE i386)
MIME-Version: 1.0
To: Niall Smart <nsmart@kira.team400.ie>
Subject: Re: C++ global constructors and shared libraries
References: <36E6AB40.742D64BB@cdsec.com> <36E6BFE4.951172E3@kira.team400.ie> <36E77D39.7A2F779D@cdsec.com> <36E79434.8E222FA2@kira.team400.ie>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Niall Smart wrote:
> 
> Graham Wheeler wrote:
> >
> > Niall Smart wrote:
> >
> > > niall% g++ -c -fpic libfoo.cc
> > > niall% g++ -shared libfoo.o -o libfoo.so
> >
> > I am using the bsd.lib.mk and related include files for the Make;
> > certainly I don't think that there is anything strange in these.
> 
> Well, why don't you try the exact same commands I used.

Okay, I have hacked my own copy of bsd.lib.mk to use g++ to make the
library rather than ld, and it works now! Thanks...


-- 
Dr Graham Wheeler                          E-mail: gram@cdsec.com
Citadel Data Security                      Phone:  +27(21)423-6065/6/7
Firewalls/Virtual Private Networks         Fax:    +27(21)24-3656
Internet/Intranet Network Specialists      
Data Security Products                     WWW:    http://www.cdsec.com/

--------------8EB273D000AF610B01F3FE9E--



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?36E7976F.434678BE>