From 0b978a1b8c4019c4f5c0ee022919c858af843778 Mon Sep 17 00:00:00 2001 From: pascal Date: Tue, 1 May 2018 08:37:50 +0000 Subject: [PATCH] Explicitly add -lm when linking to libshell.a. Fixes the build on armv7. Patch by Markus Hennecke, thanks! --- .../ksh93/patches/patch-src_cmd_ksh93_Mamfile | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 shells/ksh93/patches/patch-src_cmd_ksh93_Mamfile diff --git a/shells/ksh93/patches/patch-src_cmd_ksh93_Mamfile b/shells/ksh93/patches/patch-src_cmd_ksh93_Mamfile new file mode 100644 index 00000000000..1e9d9ad469b --- /dev/null +++ b/shells/ksh93/patches/patch-src_cmd_ksh93_Mamfile @@ -0,0 +1,23 @@ +$OpenBSD: patch-src_cmd_ksh93_Mamfile,v 1.1 2018/05/01 08:37:50 pascal Exp $ + +Index: src/cmd/ksh93/Mamfile +--- src/cmd/ksh93/Mamfile.orig ++++ src/cmd/ksh93/Mamfile +@@ -1337,7 +1337,7 @@ prev +ljobs + prev +li + prev ${mam_libsocket} + prev ${mam_libsecdb} +-exec - ${CC} ${CCLDFLAGS} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS} ${mam_cc_L+-L.} ${mam_cc_L+-L${INSTALLROOT}/lib} -o ksh pmain.o ${mam_libshell} ${mam_libnsl} ${mam_libast} ++exec - ${CC} ${CCLDFLAGS} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS} ${mam_cc_L+-L.} ${mam_cc_L+-L${INSTALLROOT}/lib} -o ksh pmain.o ${mam_libshell} ${mam_libnsl} ${mam_libast} -lm + done ksh generated + make shcomp + make shcomp.o +@@ -1361,7 +1361,7 @@ prev ${mam_libsocket} + prev ${mam_libsecdb} + setv CC.DLL -UCC.DLL + setv SH_DICT -DSH_DICT="\"libshell\"" +-exec - ${CC} ${CCLDFLAGS} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS} ${mam_cc_L+-L.} ${mam_cc_L+-L${INSTALLROOT}/lib} -o shcomp shcomp.o ${mam_libshell} ${mam_libnsl} ${mam_libast} ++exec - ${CC} ${CCLDFLAGS} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS} ${mam_cc_L+-L.} ${mam_cc_L+-L${INSTALLROOT}/lib} -o shcomp shcomp.o ${mam_libshell} ${mam_libnsl} ${mam_libast} -lm + done shcomp generated + make suid_exec + make suid_exec.o