gentoo-ebuilds/dev-embedded/sdcc/files/sdcc-4.2.0-link-tinfo.patch
Esteve Varela Colominas ec9f33c18f
dev-embedded/sdcc: Bump to 4.2.0
This update also fixes a long-standing bug with regards to the pic14 and
pic16 ports. Be sure to build with USE="pic14 pic16 non-free device-lib"
(all linked bugs are a copy of this, can be closed when this package
goes stable)

Bug: https://bugs.gentoo.org/682086
Bug: https://bugs.gentoo.org/730484
Bug: https://bugs.gentoo.org/731848
Closes: https://bugs.gentoo.org/844925
Signed-off-by: Esteve Varela Colominas <esteve.varela@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/28496
Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
2023-03-05 12:14:21 +02:00

24 lines
916 B
Diff

Link -ltinfo for ucsim
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/dev-embedded/sdcc-4.2.0/temp/cc3R2ckl.ltrans0.ltrans.o: undefined reference to symbol 'nodelay'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /lib64/libtinfo.so.6: error adding symbols: DSO missing from command line
--- sdcc-4.2.0.orig/sim/ucsim/configure.ac
+++ sdcc-4.2.0/sim/ucsim/configure.ac
@@ -405,14 +405,14 @@
if test $curses_ok != yes; then
AC_CHECK_LIB(curses,nl,
curses_ok="yes"
- CURSES_LIBS="${CURSES_LIBS} -lcurses",
+ CURSES_LIBS="${CURSES_LIBS} -lcurses -ltinfo",
curses_ok="no")
fi
if test $curses_ok != yes; then
AC_CHECK_LIB(ncurses,nl,
curses_ok="yes"
- CURSES_LIBS="${CURSES_LIBS} -lncurses",
+ CURSES_LIBS="${CURSES_LIBS} -lncurses -ltinfo",
curses_ok="no")
fi
fi