]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
login: Add back libutil as an empty library
authorStafford Horne <shorne@gmail.com>
Wed, 13 Oct 2021 12:43:50 +0000 (21:43 +0900)
committerStafford Horne <shorne@gmail.com>
Thu, 28 Oct 2021 21:18:55 +0000 (06:18 +0900)
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.

login/Makefile

index 4e6b97734d8b06e111eb738815ac856363dcb2e8..e2bdcb1b0db616a10043bfc5b012cb6712bce51f 100644 (file)
@@ -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