]> git.ipfire.org Git - thirdparty/iw.git/commit
iw: fix the Makefile for multiple libnl installations
authorGuido Trentalancia <guido@trentalancia.com>
Sat, 2 Jun 2012 23:46:45 +0000 (01:46 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 6 Jun 2012 08:45:46 +0000 (10:45 +0200)
commit4439467ec78d016bf48224add8cadbdccc427cc2
tree8f62ffc777c55464450ee5aa99f556ff37c6444b
parent720583e9a9fce9b760b8794118e7a5d54cb428f5
iw: fix the Makefile for multiple libnl installations

All different versions of libnl can cohexist on a system
(libnl-1, libnl-2, libnl-3.0, libnl-3.1 and libnl-3.2).
When multiple versions are installed only link against
the highest versioned one, otherwise there might be
unpredictable results (including segmentation faults):

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7bd7f7d in genl_unregister () from /usr/lib64/libnl-genl.so.3
(gdb) where

This patch fixes the Makefile to link against only one
of the libraries, the highest version found.

Signed-off-by: Guido Trentalancia <guido@trentalancia.com>
Makefile