- pinfo-ncurses.patch: fixed linking ncurses with --as-needed
[packages/pinfo.git] / pinfo-ncurses.patch
1 --- pinfo-0.6.9/macros/curses.m4~       2006-03-09 20:44:38.000000000 +0100
2 +++ pinfo-0.6.9/macros/curses.m4        2007-02-28 00:11:39.000000000 +0100
3 @@ -161,7 +161,7 @@
4                 then
5                         AC_MSG_RESULT([$1/$2])
6                         curses_h="$2"
7 -                       curses_libs="$3"
8 +                       curses_libs="$3 -ltinfo"
9                         curses_includes="$4"
10                         stop_searching=true
11                         found_curses_h=true
12 @@ -254,11 +254,11 @@
13  dnl
14  AC_DEFUN([AC_CHECK_CURSES_COMPILE], [
15  
16 -       dnl save CFLAGS and LDFLAGS and set new ones
17 +       dnl save CFLAGS and LIBS and set new ones
18         CFLAGS_OLD=$CFLAGS
19         CFLAGS="$CFLAGS $curses_includes"
20 -       LDFLAGS_OLD=$LDFLAGS
21 -       LDFLAGS="$LDFLAGS $curses_libs"
22 +       LIBS_OLD=$LIBS
23 +       LIBS="$LIBS $curses_libs"
24  
25         dnl do the compile test 
26         AC_MSG_CHECKING([if curses is usable])
27 @@ -288,7 +288,7 @@
28  
29         dnl restore variables
30         CFLAGS=$CFLAGS_OLD
31 -       LDFLAGS=$LDFLAGS_OLD
32 +       LIBS=$LIBS_OLD
33  
34  ])
35  
This page took 0.028852 seconds and 3 git commands to generate.