From 143683828f912ddcc028f0a338788040e5397353 Mon Sep 17 00:00:00 2001 From: René Meusel Date: Mon, 15 Nov 2021 16:09:53 +0100 Subject: FIX: always state -L${BUILD_DIR} before ${LDFLAGS} (fixes #2847) Co-Authored-By: Hannes Rantzsch --- configure.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'configure.py') diff --git a/configure.py b/configure.py index 9b0255625..b1bb63f72 100755 --- a/configure.py +++ b/configure.py @@ -2247,10 +2247,11 @@ def create_template_vars(source_paths, build_paths, options, modules, cc, arch, if options.os == 'llvm' or options.compiler == 'msvc': # llvm-link and msvc require just naming the file directly + variables['build_dir_link_path'] = '' variables['link_to_botan'] = os.path.join(build_dir, variables['static_lib_name']) else: - variables['link_to_botan'] = '%s%s %s' % (cc.add_lib_dir_option, build_dir, - (cc.add_lib_option % variables['libname'])) + variables['build_dir_link_path'] = '%s%s' % (cc.add_lib_dir_option, build_dir) + variables['link_to_botan'] = cc.add_lib_option % variables['libname'] return variables -- cgit v1.2.3