You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
814 B
34 lines
814 B
5 years ago
|
Upstream-Status: Inappropriate [configuration]
|
||
|
|
||
|
# The src Makefile was checking for libcrypt.a on the host, not in the
|
||
|
# build environment. This patch checks for $LCRYPT in the environment
|
||
|
# and uses it if it's there.
|
||
|
# - jdike@linux.intel.com
|
||
|
|
||
5 years ago
|
Index: sysvinit-2.96/src/Makefile
|
||
5 years ago
|
===================================================================
|
||
5 years ago
|
diff --git a/src/Makefile b/src/Makefile
|
||
|
index 9f9f09e..9ae35df 100644
|
||
|
--- a/src/Makefile
|
||
|
+++ b/src/Makefile
|
||
|
@@ -89,6 +89,10 @@ else
|
||
|
SULOGINLIBS =
|
||
5 years ago
|
endif
|
||
|
|
||
|
+ifneq ($(LCRYPT),)
|
||
|
+ SULOGINLIBS += $(LCRYPT)
|
||
|
+else
|
||
5 years ago
|
+
|
||
|
# Additional libs for GNU libc.
|
||
|
ifneq ($(wildcard /usr/lib*/libcrypt.*),)
|
||
|
SULOGINLIBS += -lcrypt
|
||
|
@@ -99,6 +103,8 @@ ifneq ($(wildcard /usr/lib/*/libcrypt.*),)
|
||
5 years ago
|
SULOGINLIBS += -lcrypt
|
||
|
endif
|
||
|
|
||
5 years ago
|
+endif
|
||
|
+
|
||
5 years ago
|
all: $(BIN) $(SBIN) $(USRBIN)
|
||
|
|
||
5 years ago
|
#%: %.o
|