Permalink
Browse files

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 <thaller@redhat.com>
  • Loading branch information...
1 parent b203c89 commit 815e192db64ef6041b12f50648a21d59c2f84381 @thom311 committed Jan 21, 2014
Showing with 4 additions and 0 deletions.
  1. +4 −0 python/setup.py.in
View
@@ -4,25 +4,29 @@ 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'],
)
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'],
)
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'],
)

0 comments on commit 815e192

Please sign in to comment.