diff options
author | René Meusel <[email protected]> | 2019-05-21 13:17:12 +0200 |
---|---|---|
committer | René Meusel <[email protected]> | 2019-05-21 13:17:12 +0200 |
commit | adbfbeb5a71aad7f14a8a27376e46d7dd41c7bcb (patch) | |
tree | b83a061986a825faca8224103479902711d7fdbe | |
parent | e64e5b45b0e17f9c5193cf72a3d636aee122be32 (diff) |
allow for multiple --with-external-libdir
-rwxr-xr-x | configure.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/configure.py b/configure.py index 0078341b5..2536243dc 100755 --- a/configure.py +++ b/configure.py @@ -417,8 +417,8 @@ def process_command_line(args): # pylint: disable=too-many-locals,too-many-state build_group.add_option('--with-external-includedir', metavar='DIR', default=[], help='use DIR for external includes', action='append') - build_group.add_option('--with-external-libdir', metavar='DIR', default='', - help='use DIR for external libs') + build_group.add_option('--with-external-libdir', metavar='DIR', default=[], + help='use DIR for external libs', action='append') build_group.add_option('--with-sysroot-dir', metavar='DIR', default='', help='use DIR for system root while cross-compiling') @@ -1783,7 +1783,7 @@ def create_template_vars(source_paths, build_paths, options, modules, cc, arch, """ def external_link_cmd(): - return (' ' + cc.add_lib_dir_option + options.with_external_libdir) if options.with_external_libdir else '' + return ' '.join([cc.add_lib_dir_option + libdir for libdir in options.with_external_libdir]) def link_to(module_member_name): """ @@ -2004,8 +2004,8 @@ def create_template_vars(source_paths, build_paths, options, modules, cc, arch, 'visibility_attribute': cc.gen_visibility_attribute(options), - 'lib_link_cmd': cc.so_link_command_for(osinfo.basename, options) + external_link_cmd(), - 'exe_link_cmd': cc.binary_link_command_for(osinfo.basename, options) + external_link_cmd(), + 'lib_link_cmd': cc.so_link_command_for(osinfo.basename, options) + ' ' + external_link_cmd(), + 'exe_link_cmd': cc.binary_link_command_for(osinfo.basename, options) + ' ' + external_link_cmd(), 'post_link_cmd': '', 'ar_command': ar_command(), |