Optionally have ld(1) script instead of symlink for .so

Jeremie Le Hen jlh at FreeBSD.org
Tue May 1 13:14:10 UTC 2012


Hi,

I plan to commit the attached patch.  It brings a new variable for
library Makefiles (SHLIB_LDSCRIPT).  When defined, it contains the name
of a template file used to generate the ld(1) script.

Two variables may appear in the template file:
- @@SHLIB@@ will be substituted by the real shared library full path
  (${SHLIBDIR}/${SHLIB_NAME});
- @@LIBDIR@@ will be substituted with ${LIBDIR}.

This is wrapped with some cursed magic to allow building 32bits
libraries on 64bits platforms and cross-building.

This is the first step toward being able to build ports with SSP
painlessly.

Any comment or concern?
-- 
Jeremie Le Hen

Men are born free and equal.  Later on, they're on their own.
				Jean Yanne
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ldscript.diff
Type: text/x-diff
Size: 2680 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20120501/a10189e8/ldscript.bin


More information about the freebsd-hackers mailing list