Add some patches to grub.
[people/pmueller/ipfire-2.x.git] / src / patches / grub-0.95-staticcurses.patch
1 --- grub-0.95/configure.ac.static 2004-06-13 13:38:17.000000000 -0400
2 +++ grub-0.95/configure.ac 2004-06-18 17:35:23.513374336 -0400
3 @@ -207,9 +207,9 @@
4
5 # Unless the user specify --without-curses, check for curses.
6 if test "x$with_curses" != "xno"; then
7 - AC_CHECK_LIB(ncurses, wgetch, [GRUB_LIBS="$GRUB_LIBS -lncurses"
8 + AC_CHECK_LIB(ncurses, wgetch, [GRUB_LIBS="$GRUB_LIBS -Wl,-Bstatic -lncurses -Wl,-Bdynamic"
9 AC_DEFINE(HAVE_LIBCURSES, 1, [Define if you have a curses library])],
10 - [AC_CHECK_LIB(curses, wgetch, [GRUB_LIBS="$GRUB_LIBS -lcurses"
11 + [AC_CHECK_LIB(curses, wgetch, [GRUB_LIBS="$GRUB_LIBS -Wl,-Bstatic -lcurses -Wl,-Bdynamic"
12 AC_DEFINE(HAVE_LIBCURSES, 1, [Define if you have a curses library])])])
13 fi
14