From 815e192db64ef6041b12f50648a21d59c2f84381 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Tue, 21 Jan 2014 19:05:37 +0100 Subject: [PATCH] python: fix build error for missing library_path in setup.py Patch obtained from gentoo package. https://bugs.gentoo.org/show_bug.cgi?id=477110 https://bugs.gentoo.org/show_bug.cgi?id=490584 Signed-off-by: Thomas Haller --- python/setup.py.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/setup.py.in b/python/setup.py.in index 813dfc9..798cfe5 100644 --- a/python/setup.py.in +++ b/python/setup.py.in @@ -4,11 +4,13 @@ from distutils.core import setup, Extension opts = ['-O', '-nodefaultctor'] include = ['@top_builddir@/include'] +library_dirs = ['@top_builddir@/lib/.libs'] netlink_capi = Extension('netlink/_capi', sources = ['netlink/capi.i'], include_dirs = include, swig_opts = opts, + library_dirs = library_dirs, libraries = ['nl-3'], ) @@ -16,6 +18,7 @@ route_capi = Extension('netlink/route/_capi', sources = ['netlink/route/capi.i'], include_dirs = include, swig_opts = opts, + library_dirs = library_dirs, libraries = ['nl-3', 'nl-route-3'], ) @@ -23,6 +26,7 @@ genl_capi = Extension('netlink/genl/_capi', sources = ['netlink/genl/capi.i'], include_dirs = include, swig_opts = opts, + library_dirs = library_dirs, libraries = ['nl-3', 'nl-genl-3'], ) -- 2.40.0