File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 3434 modules.
3535 * pam_tcb/Makefile: Honor PAM_SO_SUFFIX variable.
3636
37+ pam_tcb: Apply proper soname during linking if PAM_SO_SUFFIX
38+ is set.
39+ * pam_tcb/Makefile: Apply proper soname with PAM_SO_SUFFIX
40+ not being empty. Adapt clean target also.
41+
37422021-09-25 Dmitry V. Levin <ldv at owl.openwall.com>
3843
3944 Add github CI.
Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ PAM_SO_SUFFIX =
44PAM_TCB = pam_tcb.so$(PAM_SO_SUFFIX )
55PAM_MAP = pam_tcb.map
66
7+ ifneq ($(PAM_SO_SUFFIX ) ,)
8+ PAM_TCB_SONAME = -Wl,-soname,$(PAM_TCB )
9+ endif
10+
711LIBSRC = \
812 pam_unix_auth.c pam_unix_acct.c pam_unix_sess.c pam_unix_passwd.c \
913 support.c compat.c
@@ -13,8 +17,8 @@ LIBOBJ = $(LIBSRC:.c=.o)
1317all : $(PAM_TCB )
1418
1519$(PAM_TCB ) : $(LIBOBJ ) $(PAM_MAP )
16- $(CC ) $(LDFLAGS ) -shared -o $@ -Wl,--version-script= $( PAM_MAP ) \
17- $(LIBOBJ ) -lcrypt -lpam -ltcb
20+ $(CC ) $(LDFLAGS ) -shared -o $@ $( PAM_TCB_SONAME ) \
21+ -Wl,--version-script= $( PAM_MAP ) $(LIBOBJ ) -lcrypt -lpam -ltcb
1822
1923.c.o :
2024 $(CC ) $(CFLAGS ) -fPIC -c $< -o $@
@@ -44,4 +48,4 @@ install-pam_pwdb: install
4448 $(INSTALL ) -m 644 pam_pwdb.8 $(DESTDIR )$(MANDIR ) /man8/
4549
4650clean :
47- rm -f * .o * ~ $(PAM_TCB )
51+ rm -f * .o * ~ $(PAM_TCB ) *
You can’t perform that action at this time.
0 commit comments