diff options
author | Thomas Haller <thaller@redhat.com> | 2014-01-21 19:05:37 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2014-01-21 19:11:16 +0100 |
commit | 815e192db64ef6041b12f50648a21d59c2f84381 (patch) | |
tree | bf185ded6de818947865ae9d4a887f4f45151c05 | |
parent | b203c89d862a6ae3e82122fe1b6882b427d53551 (diff) | |
download | libnl-815e192db64ef6041b12f50648a21d59c2f84381.tar.gz |
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>
-rw-r--r-- | python/setup.py.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/python/setup.py.in b/python/setup.py.in index 813dfc99..798cfe5e 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'], ) |