summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/libcgroup/libcgroup/module.patch
blob: d8ff9b1479f45a22e9d30f106c39956a1db3b48d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Upstream-Status: Backport
Signed-off-by: Ross Burton <ross.burton@arm.com>

From 76f0879056ce7e3f0123c277f2303954d0b6cead Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tomasz=20K=C5=82oczko?= <kloczek@github.com>
Date: Wed, 12 May 2021 20:36:02 +0000
Subject: [PATCH 2/2] automake: build PAM module as unversioned DSO
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

PAM modules should be build as unversioned DSO.
Add -avoid-version to pam_cgroup_la_LDFLAGS

Signed-off-by: Tomasz Kłoczko <kloczek@github.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
---
 src/pam/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/pam/Makefile.am b/src/pam/Makefile.am
index bd5a91d..4b0b2a9 100644
--- a/src/pam/Makefile.am
+++ b/src/pam/Makefile.am
@@ -4,7 +4,7 @@ if WITH_PAM
 
 pamlib_LTLIBRARIES = pam_cgroup.la
 pam_cgroup_la_SOURCES = pam_cgroup.c
-pam_cgroup_la_LDFLAGS = -module
+pam_cgroup_la_LDFLAGS = -module -avoid-version
 pam_cgroup_la_LIBADD = $(top_builddir)/src/libcgroup.la -lpam
 
 endif
-- 
2.32.0