From c7a1d30590f3f144ca83a86e4b05e60d69fda18f Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Tue, 17 Mar 2009 10:19:54 +0000 Subject: [PATCH] Use libtool -export-symbols-regex to reduce numer of exported symbols. --- NEWS | 5 +++++ src/Makefile.am | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index ed3c9efc..b26aad69 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,8 @@ +- (Mar 17 2009) Simon Josefsson: + + Added a Libtool -export-symbols-regex flag to reduce the number of + exported symbols in shared libraries. Reported by Mikhail Gusarov. + - (Mar 16 2009) Daniel Stenberg: I renamed a few man pages to match the exact name of the functions they diff --git a/src/Makefile.am b/src/Makefile.am index 8766b979..eb0ad098 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,4 +1,4 @@ -# $Id: Makefile.am,v 1.15 2009/02/23 16:22:46 bagder Exp $ +# $Id: Makefile.am,v 1.16 2009/03/17 10:19:54 jas4711 Exp $ AUTOMAKE_OPTIONS = foreign nostdinc libssh2_la_SOURCES = channel.c comp.c crypt.c hostkey.c kex.c mac.c \ @@ -51,4 +51,5 @@ VERSION=-version-info 1:1:0 # libssh2_la_LDFLAGS = $(VERSION) -no-undefined \ + -export-symbols-regex '^libssh2_.*' \ $(LTLIBGCRYPT) $(LTLIBSSL) $(LTLIBZ)