From c8e0277f1fec3a6fc9b2dfe1bfd8aedd17121a4e Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Tue, 1 Nov 2022 18:28:31 -0400 Subject: linux: force our config, busybox: don't link m/crypt --- busybox/Makefile.flags.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 busybox/Makefile.flags.patch (limited to 'busybox') diff --git a/busybox/Makefile.flags.patch b/busybox/Makefile.flags.patch new file mode 100644 index 0000000..7988561 --- /dev/null +++ b/busybox/Makefile.flags.patch @@ -0,0 +1,18 @@ +--- Makefile.flags 2022-11-01 18:18:43.006550705 -0400 ++++ Makefile.flags.new 2022-11-01 18:20:21.794697686 -0400 +@@ -108,12 +108,15 @@ + # gcc-4.2.1 fails if we try to feed C source on stdin: + # echo 'int main(void){return 0;}' | $(CC) $(CFLAGS) -lcrypt -o /dev/null -xc - + # fall back to using a temp file: ++ifeq ($(BUSYBOX_NO_CRYPT_CHECK),1) ++else + CRYPT_AVAILABLE := $(shell echo 'int main(void){return 0;}' >crypttest.c; $(CC) $(CFLAGS) -lcrypt -o /dev/null crypttest.c >/dev/null 2>&1 && echo "y"; rm crypttest.c) + ifeq ($(CRYPT_AVAILABLE),y) + LDLIBS += m crypt + else + LDLIBS += m + endif ++endif + + ifeq ($(CONFIG_PAM),y) + # libpam uses libpthread, so for static builds busybox must be linked to -- cgit v1.2.3