🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #42293

-static, but no -dynamic

#42293
From: Michael Horbovetz
Date: Thu, 21 Dec 1995 00:00
27 lines
1279 bytes
i'm building on a sparc with Solaris as the os.  as the subject line
states does anyone know how to switch to linking to share objects
instead of statically?  i'm trying to resolve undefined symbols that
are defined in libdl.so.1 (no libdl.a).

it seems that gcc defaults to dynamic linking but with the -static
present it seems to want only static libraries.

example

gcc ........   -ldl -static -lsocket -lnsl -lintl -lgen

this does not work.  i still receive

ld: fatal: library -ldl: not found

please e-mail me directly as i don't read this newsgroup very often.

thanks,
mike

--

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
Michael D Horbovetz  mhorbove@spd.dsccc.com|UT linebacker Robert Reed -
DSC Comm Corp Plano, Tx  75075             |"JUST SHUT UP AND GO TO
Disclaimer: My opinions are my own.        |THE ALAMO BOWL"
Technical Details
Message-ID: <4bc7lo$dej@sun001.spd.dsccc.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,3d16a86f3a04047c,start
X-Google-Attributes: gid11318c,public
From: mhorbove@spd.dsccc.com (Michael Horbovetz)
Subject: -static, but no -dynamic
Date: 1995/12/21
Message-ID: <4bc7lo$dej@sun001.spd.dsccc.com>
X-Deja-AN: 122498339
organization: DSC Communications Corporation, Plano, Texas USA
newsgroups: gnu.gcc.help