summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sss_client/Makefile.am9
-rw-r--r--sss_client/sss_nss.exports (renamed from sss_client/exports.linux)0
-rw-r--r--sss_client/sss_pam.exports4
3 files changed, 11 insertions, 2 deletions
diff --git a/sss_client/Makefile.am b/sss_client/Makefile.am
index 90427b05..9a7ebab0 100644
--- a/sss_client/Makefile.am
+++ b/sss_client/Makefile.am
@@ -24,7 +24,8 @@ libnss_sss_la_SOURCES = \
sss_cli.h
libnss_sss_la_LDFLAGS = \
-module \
- -avoid-version
+ -avoid-version \
+ -Wl,--version-script,$(srcdir)/sss_nss.exports
pam_sss_la_SOURCES = \
pam_sss.c \
@@ -38,7 +39,8 @@ pam_sss_la_LDFLAGS = \
-lpam \
-lpam_misc \
-module \
- -avoid-version
+ -avoid-version \
+ -Wl,--version-script,$(srcdir)/sss_pam.exports
noinst_PROGRAMS = pam_test_client
pam_test_client_SOURCES = pam_test_client.c
@@ -46,6 +48,9 @@ pam_test_client_LDFLAGS = -lpam -lpam_misc
EXTRA_DIST = build/config.rpath
+dist_noinst_DATA = \
+ sss_nss.exports \
+ sss_pam.exports
install-data-hook:
mv $(DESTDIR)/$(nsslibdir)/libnss_sss.so $(DESTDIR)/$(nsslibdir)/libnss_sss.so.2
diff --git a/sss_client/exports.linux b/sss_client/sss_nss.exports
index bcc6b10e..bcc6b10e 100644
--- a/sss_client/exports.linux
+++ b/sss_client/sss_nss.exports
diff --git a/sss_client/sss_pam.exports b/sss_client/sss_pam.exports
new file mode 100644
index 00000000..9afa106b
--- /dev/null
+++ b/sss_client/sss_pam.exports
@@ -0,0 +1,4 @@
+{
+ global:
+ *;
+};