From 8e7b4b77db1ff48c719a3a40333fad0670970f32 Mon Sep 17 00:00:00 2001 From: serge-sans-paille Date: Sun, 22 Sep 2024 11:04:23 +0200 Subject: [PATCH] Fix output of pythran-config --libs prefix library dirs with -L --- pythran/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pythran/config.py b/pythran/config.py index 990909e9a..67f1c1ed8 100644 --- a/pythran/config.py +++ b/pythran/config.py @@ -402,7 +402,7 @@ def fmt_define(define): if args.libs or args.verbose >= 2: ldflags = [] - ldflags.extend((compiler_obj.library_dir_option(include)) + ldflags.extend(('-L' + compiler_obj.library_dir_option(include)) for include in extension['library_dirs']) ldflags.extend((compiler_obj.library_option(include)) for include in extension['libraries']) @@ -410,7 +410,7 @@ def fmt_define(define): if args.python: libpl = distutils.sysconfig.get_config_var('LIBPL') if libpl: - ldflags.append(libpl) + ldflags.append('-L' + libpl) libs = distutils.sysconfig.get_config_var('LIBS') if libs: ldflags.extend(shsplit(libs))