Subject: --export-dynamic
To: None <tech-pkg@netbsd.org>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
List: tech-pkg
Date: 06/15/2002 09:34:24
--2oS5YaxWCcQjTEyO
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

hi,

i am fixing various pkgsrc packages to compile on Solaris and one of
things causing problems is --export-dynamic passed to linker what
Solaris' /usr/ccs/bin/ld doesn't like.

i see two ways of fixing this in pkgsrc now, one add this flag to LIBS
(or LDFLAGS) if OPSYS *is* NetBSD, other if it *isn't* SunOS.  as i
don't have access to any GNU/Linux or Mac OS X machine to test this on,
i'd like to ask which way is The Right Thing(tm) to do?

and when i am at it, it would be nice to unify this if it's possible so
it would be either set in LIBS or LDFLAGS (for me LDFLAGS is the right
one, because it definitely sets *flag* for ld, not a library).  what do
you think?


regards,

--=20
-- Lubomir Sedlacik <salo@Xtrmntr.org>   ASCII Ribbon campaign against  /"\=
 --
--                  <salo@silcnet.org>   e-mail in gratuitous HTML and  \ /=
 --
--                                       Microsoft proprietary formats   X =
 --
-- PGPkey: http://Xtrmntr.org/salo.pgp                                  / \=
 --
-- Key Fingerprint: DBEC 8BEC 9A90 ECEC 0FEF  716E 59CE B70B 7E3B 70E2     =
 --

--2oS5YaxWCcQjTEyO
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (NetBSD)

iD8DBQE9Cu4AWc63C347cOIRAp9qAKDkpDBVE7rSbtwBfLNQXpbS0E2D1ACg6+FJ
aXDoDYmdze0nz0SjTXY2Zu0=
=buVr
-----END PGP SIGNATURE-----

--2oS5YaxWCcQjTEyO--