Andrew Geissler | d159c7f | 2021-09-02 21:05:58 -0500 | [diff] [blame] | 1 | Upstream-Status: Backport |
| 2 | Signed-off-by: Ross Burton <ross.burton@arm.com> |
| 3 | |
| 4 | From 76f0879056ce7e3f0123c277f2303954d0b6cead Mon Sep 17 00:00:00 2001 |
| 5 | From: =?UTF-8?q?Tomasz=20K=C5=82oczko?= <kloczek@github.com> |
| 6 | Date: Wed, 12 May 2021 20:36:02 +0000 |
| 7 | Subject: [PATCH 2/2] automake: build PAM module as unversioned DSO |
| 8 | MIME-Version: 1.0 |
| 9 | Content-Type: text/plain; charset=UTF-8 |
| 10 | Content-Transfer-Encoding: 8bit |
| 11 | |
| 12 | PAM modules should be build as unversioned DSO. |
| 13 | Add -avoid-version to pam_cgroup_la_LDFLAGS |
| 14 | |
| 15 | Signed-off-by: Tomasz Kłoczko <kloczek@github.com> |
| 16 | Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com> |
| 17 | --- |
| 18 | src/pam/Makefile.am | 2 +- |
| 19 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 20 | |
| 21 | diff --git a/src/pam/Makefile.am b/src/pam/Makefile.am |
| 22 | index bd5a91d..4b0b2a9 100644 |
| 23 | --- a/src/pam/Makefile.am |
| 24 | +++ b/src/pam/Makefile.am |
| 25 | @@ -4,7 +4,7 @@ if WITH_PAM |
| 26 | |
| 27 | pamlib_LTLIBRARIES = pam_cgroup.la |
| 28 | pam_cgroup_la_SOURCES = pam_cgroup.c |
| 29 | -pam_cgroup_la_LDFLAGS = -module |
| 30 | +pam_cgroup_la_LDFLAGS = -module -avoid-version |
| 31 | pam_cgroup_la_LIBADD = $(top_builddir)/src/libcgroup.la -lpam |
| 32 | |
| 33 | endif |
| 34 | -- |
| 35 | 2.32.0 |
| 36 | |