summaryrefslogtreecommitdiff
path: root/debian/patches/0005-Link-with-libm-to-resovle-symbols-in-suid_exec.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/0005-Link-with-libm-to-resovle-symbols-in-suid_exec.patch')
-rw-r--r--debian/patches/0005-Link-with-libm-to-resovle-symbols-in-suid_exec.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/debian/patches/0005-Link-with-libm-to-resovle-symbols-in-suid_exec.patch b/debian/patches/0005-Link-with-libm-to-resovle-symbols-in-suid_exec.patch
new file mode 100644
index 0000000..c8e1d4f
--- /dev/null
+++ b/debian/patches/0005-Link-with-libm-to-resovle-symbols-in-suid_exec.patch
@@ -0,0 +1,26 @@
+From: Igor Pashev <pashev.igor@gmail.com>
+Date: Sun, 24 Jun 2012 22:47:19 +0000
+Subject: Link with libm to resovle symbols in suid_exec
+
++ cc -g -O2 -L. -L/var/tmp/ksh-93u+/arch/sol11.i386/lib -o suid_exec suid_exec.o /var/tmp/ksh-93u+/arch/sol11.i386/lib/libast.a -liconv -lnsl /var/tmp/ksh-93u+/arch/sol11.i386/lib/libast.a -liconv
+/var/tmp/ksh-93u+/arch/sol11.i386/lib/libast.a(sfcvt.o): In function `_sfcvt':
+/var/tmp/ksh-93u+/src/lib/libast/sfio/sfcvt.c:203: undefined reference to `frexpl'
+/var/tmp/ksh-93u+/src/lib/libast/sfio/sfcvt.c:205: undefined reference to `ldexpl'
+/var/tmp/ksh-93u+/src/lib/libast/sfio/sfcvt.c:216: undefined reference to `ldexpl'
+---
+ src/cmd/ksh93/Mamfile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/cmd/ksh93/Mamfile b/src/cmd/ksh93/Mamfile
+index 5a55040..9381e33 100644
+--- a/src/cmd/ksh93/Mamfile
++++ b/src/cmd/ksh93/Mamfile
+@@ -1386,7 +1386,7 @@ prev +li
+ prev ${mam_libsocket}
+ prev ${mam_libsecdb}
+ setv CC.DLL -UCC.DLL
+-exec - ${CC} ${CCLDFLAGS} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS} ${mam_cc_L+-L.} ${mam_cc_L+-L${INSTALLROOT}/lib} -o suid_exec suid_exec.o ${mam_libast} ${mam_libnsl} ${mam_libast}
++exec - ${CC} ${CCLDFLAGS} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS} ${mam_cc_L+-L.} ${mam_cc_L+-L${INSTALLROOT}/lib} -o suid_exec suid_exec.o ${mam_libast} ${mam_libnsl} ${mam_libast} -lm
+ done suid_exec generated
+ make shell
+ prev libshell.a archive