hc
2023-11-06 e3e12f52b214121840b44c91de5b3e5af5d3eb84
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
configure: fix ordering of ncurses libraries
 
Says Vicente:
    [T]he order is very important when doing static builds.
    Otherwise we will see errors like this one:
 
    [...]/sysroot/usr/lib/libpanel.a(p_delete.o):
    In function `del_panel':
    p_delete.c:(.text+0x68): undefined reference to `_nc_panelhook'
 
Fix the order configure adds libraries: new libraries should be added
at the *front* of the list, not at the end.
 
Reported-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
[bernd.kuhls@t-online.de: update for 2016-07-R1]
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
 
diff -durN kismet-Kismet-2014-02-R1.orig/configure.in kismet-Kismet-2014-02-R1/configure.in
--- kismet-Kismet-2014-02-R1.orig/configure.ac    2014-02-19 05:37:43.000000000 +0100
+++ kismet-Kismet-2014-02-R1/configure.ac    2014-12-26 16:46:55.770692349 +0100
@@ -437,10 +434,10 @@
         AC_MSG_ERROR(Failed to find curses.h or ncurses.h.  You probably need to install the curses-devel package from your distribution)
     fi
 
-    LIBS="$LIBS $curseaux"
+    LIBS="$curseaux $LIBS"
     AC_CHECK_LIB([panel], [new_panel],
                  AC_DEFINE(HAVE_LIBPANEL, 1, Panel terminal lib)
-                 curseaux="$curseaux -lpanel",
+                 curseaux="-lpanel $curseaux",
                  AC_MSG_ERROR(Failed to find libpanel extension to curses/ncurses.  Install it, or disable building the Kismet client with --disable-client.  Disabling the client is probably not something you want to do normally.))
 
     AC_CHECK_HEADER([panel.h], [foundhpanel=yes])
@@ -450,7 +447,7 @@
 
     LIBS="$OLIBS"
 
-    CLIENTCLIBS="$CLIENTCLIBS $curseaux"
+    CLIENTCLIBS="$curseaux $CLIENTCLIBS"
 fi
 
 AC_SUBST(CLIBS)