Skip to content

Commit

Permalink
Fix output of pythran-config --libs
Browse files Browse the repository at this point in the history
prefix library dirs with -L
  • Loading branch information
serge-sans-paille committed Sep 22, 2024
1 parent 7c87ba5 commit 8e7b4b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pythran/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,15 +402,15 @@ 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'])

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))
Expand Down

0 comments on commit 8e7b4b7

Please sign in to comment.