Update build process to create libnsl stub

This commit is contained in:
Stan Shebs 2020-11-03 13:30:16 -08:00 committed by Fangrui Song
parent 87ac253d00
commit bd1e10723b
3 changed files with 4 additions and 3 deletions

View File

@ -1248,7 +1248,7 @@ all-subdirs = csu assert ctype locale intl catgets math setjmp signal \
grp pwd posix io termios resource misc socket sysvipc gmon \
gnulib iconv iconvdata wctype manual shadow gshadow po argp \
crypt localedata timezone rt conform debug mathvec support \
dlfcn elf
dlfcn elf google-nsl-stub
ifndef avoid-generated
# sysd-sorted itself will contain rules making the sysd-sorted target

View File

@ -1 +1 @@
.*-.*-.* libnsl=1
libnsl=1

View File

@ -34,7 +34,8 @@ databases = proto service hosts network grp pwd rpc ethers \
services := nis nisplus
endif
extra-libs = libnsl
# Suppress regular libnsl build in favor of the stub in google-nsl-stub.
#extra-libs = libnsl
ifeq ($(build-obsolete-nsl),yes)
extra-libs += $(services:%=libnss_%)
endif