diff options
author | CoprDistGit <infra@openeuler.org> | 2024-08-03 06:28:41 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-08-03 06:28:41 +0000 |
commit | d20db0561a6a36f914fde030512503b114ef9a0c (patch) | |
tree | d4e5e3494d95c269a1cee6195f11bf3201bcadbf /login-Add-back-libutil-as-an-empty-library.patch | |
parent | 016343d99b1b269d7246ef1e143d4b54914433d4 (diff) |
automatic import of glibcopeneuler22.03_LTS_SP4openeuler22.03_LTS_SP3openeuler20.03
Diffstat (limited to 'login-Add-back-libutil-as-an-empty-library.patch')
-rw-r--r-- | login-Add-back-libutil-as-an-empty-library.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/login-Add-back-libutil-as-an-empty-library.patch b/login-Add-back-libutil-as-an-empty-library.patch new file mode 100644 index 0000000..a6ea90b --- /dev/null +++ b/login-Add-back-libutil-as-an-empty-library.patch @@ -0,0 +1,42 @@ +From b3cf94ef15f0bb6ff336907e31ab0064a0381916 Mon Sep 17 00:00:00 2001 +From: Stafford Horne <shorne@gmail.com> +Date: Wed, 13 Oct 2021 21:43:50 +0900 +Subject: [PATCH] login: Add back libutil as an empty library + +There are several packages like sysvinit and buildroot that expect +-lutil to work. Rather than impacting them with having to change +the linker flags provide an empty libutil.a. + +Signed-off-by: wanghongliang <wanghongliang@loongson.cn> +--- + login/Makefile | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/login/Makefile b/login/Makefile +index 4e6b97734d..e2bdcb1b0d 100644 +--- a/login/Makefile ++++ b/login/Makefile +@@ -46,10 +46,10 @@ vpath %.c programs + tests := tst-utmp tst-utmpx tst-grantpt tst-ptsname tst-getlogin tst-updwtmpx \ + tst-pututxline-lockfail tst-pututxline-cache + +-ifeq ($(have-GLIBC_2.33),yes) + # Empty compatibility library for old binaries. + extra-libs := libutil + extra-libs-others := $(extra-libs) ++ifeq ($(have-GLIBC_2.33),yes) + libutil-routines := libutil-compat + libutil-shared-only-routines := libutil-compat + +@@ -57,6 +57,8 @@ libutil-shared-only-routines := libutil-compat + # link is not installed. + install-lib-ldscripts = libutil.so + $(inst_libdir)/libutil.so: ++else # not $(have-GLIBC_2.33) ++libutil-inhibit-o = $(filter-out .o,$(object-suffixes)) + endif # $(have-GLIBC_2.33) + + include ../Rules +-- +2.31.1 + |