aboutsummaryrefslogtreecommitdiff
path: root/login
diff options
context:
space:
mode:
authorStafford Horne <shorne@gmail.com>2021-10-13 21:43:50 +0900
committerStafford Horne <shorne@gmail.com>2021-10-29 06:18:55 +0900
commitb3cf94ef15f0bb6ff336907e31ab0064a0381916 (patch)
tree93213081f611a7c19b985bc37e110f828dbd2597 /login
parent68389203832ab39dd0dbaabbc4059e7fff51c29b (diff)
downloadglibc-b3cf94ef15f0bb6ff336907e31ab0064a0381916.zip
glibc-b3cf94ef15f0bb6ff336907e31ab0064a0381916.tar.gz
glibc-b3cf94ef15f0bb6ff336907e31ab0064a0381916.tar.bz2
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.
Diffstat (limited to 'login')
-rw-r--r--login/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/login/Makefile b/login/Makefile
index 4e6b977..e2bdcb1 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