aboutsummaryrefslogtreecommitdiffstats
path: root/configure.py
diff options
context:
space:
mode:
authorRenĂ© Meusel <[email protected]>2021-11-15 16:09:53 +0100
committerRenĂ© Meusel <[email protected]>2021-11-15 16:09:53 +0100
commit143683828f912ddcc028f0a338788040e5397353 (patch)
treed53c4655386c7870604f61d30bc3f794b1f98af8 /configure.py
parentdf6dddac4dee797a199bc587867fca9cfc6b21d1 (diff)
FIX: always state -L${BUILD_DIR} before ${LDFLAGS} (fixes #2847)
Co-Authored-By: Hannes Rantzsch <[email protected]>
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py5
1 files changed, 3 insertions, 2 deletions
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