Files
gentoo/dev-embedded/sdcc/files/sdcc-4.5.0-link-tinfo.patch
Viorel Munteanu 095fd4372c dev-embedded/sdcc: add 4.5.0
Add version 4.5.0.  Sync live ebuild.

The build system for this package is a mess.  eautoreconf does not work
by default, there are multiple hacks to make it work.  I included
binutils in SRC_URI to copy two m4 files from there.  I could have
packaged them alone, but I assume most people already have it anyway.
Also looks a bit more secure this way.

Closes: https://bugs.gentoo.org/970237
Closes: https://bugs.gentoo.org/922301
Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
2026-02-20 16:01:55 +02:00

25 lines
901 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
--- a/sim/ucsim/src/configure.ac
+++ b/sim/ucsim/src/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