tools/python: pass more -rpath-link options to ld

With the split of libraries, I've observed a number of warnings from
(old?) ld.

Instead of duplicating the additions in two places, introduce a setup.py
make variable holding all the common parts of the invocations.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
This commit is contained in:
Jan Beulich committed 2020-11-05 16:48:37 +01:00
1 parent 9ff9705647
commit 2b8314a3c3
2 files changed
+14 -7

No files matched your search

+6 -1
View File
@@ -4,6 +4,10 @@ import os, sys
XEN_ROOT = "../.."
SHLIB_libxenctrl = os.environ['SHLIB_libxenctrl'].split()
SHLIB_libxenguest = os.environ['SHLIB_libxenguest'].split()
SHLIB_libxenstore = os.environ['SHLIB_libxenstore'].split()
extra_compile_args = [ "-fno-strict-aliasing", "-Werror" ]
PATH_XEN = XEN_ROOT + "/tools/include"
@@ -24,7 +28,7 @@ xc = Extension("xc",
library_dirs = [ PATH_LIBXENCTRL, PATH_LIBXENGUEST ],
libraries = [ "xenctrl", "xenguest" ],
depends = [ PATH_LIBXENCTRL + "/libxenctrl.so", PATH_LIBXENGUEST + "/libxenguest.so" ],
extra_link_args = [ "-Wl,-rpath-link="+PATH_LIBXENTOOLLOG ],
extra_link_args = SHLIB_libxenctrl + SHLIB_libxenguest,
sources = [ "xen/lowlevel/xc/xc.c" ])
xs = Extension("xs",
@@ -33,6 +37,7 @@ xs = Extension("xs",
library_dirs = [ PATH_XENSTORE ],
libraries = [ "xenstore" ],
depends = [ PATH_XENSTORE + "/libxenstore.so" ],
extra_link_args = SHLIB_libxenstore,
sources = [ "xen/lowlevel/xs/xs.c" ])
plat = os.uname()[0]
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.