OSDN Git Service

build: add Solaris symbol versioning
authorSean McGovern <gseanmcg@gmail.com>
Wed, 7 Oct 2015 21:39:37 +0000 (17:39 -0400)
committerLuca Barbato <lu_zero@gentoo.org>
Sun, 11 Oct 2015 13:42:36 +0000 (15:42 +0200)
commitc1aac39eaccd32dc3b74ccfcce701d3d888fbc6b
tree99c2de788e2c57519aaee5495f0dee0bb71fbb14
parentb9ece15a01782b4f301c0c139d1d7b20f848914c
build: add Solaris symbol versioning

The versioning facility in the Solaris linker differs from Linux in 3 ways:

1. It does not support globs in linker scripts for
symbol versioning -- this is a GNU extension.

2. The linker argument is '-M', instead of '--version-script'.

3. It is picky about line endings.
Each symbol or directive must be on a line of it's own.

Let's use make_sunver.pl from GCC to generate a version script that works
correctly with the Solaris linker. It's function is to correctly expand the
globs in the original generated version script.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Makefile
common.mak
compat/solaris/make_sunver.pl [new file with mode: 0755]
configure