Make sure git ignores new executable files in src directory.

Make location of libcrypt library more flexible.
This commit is contained in:
Jesse Smith
2019-09-12 17:35:55 -03:00
parent 13cb3665b1
commit ad50c8272e
3 changed files with 13 additions and 2 deletions

View File

@@ -90,14 +90,16 @@ else
endif
# Additional libs for GNU libc.
ifneq ($(wildcard /usr/lib*/libcrypt.*),)
ifneq ($(wildcard $(ROOT)/usr/lib*/libcrypt.*),)
SULOGINLIBS += -lcrypt
endif
# Additional libs for GNU libc / multiarch on Debian based systems.
ifneq ($(wildcard /usr/lib/*/libcrypt.*),)
ifneq ($(wildcard $(ROOT)/usr/lib/*/libcrypt.*),)
ifneq ($(findstring -lcrypt, $(SULOGINLIBS)), -lcrypt)
SULOGINLIBS += -lcrypt
endif
endif
all: $(BIN) $(SBIN) $(USRBIN)