Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ def configure_library(lib, output):
# libpath needs to be provided ahead libraries
if pkg_libpath:
output['libraries'] += (
filter(None, map(str.strip, pkg_cflags.split('-L'))))
map('-L{0}'.format, filter(None, map(str.strip, pkg_libpath.split('-L')))))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@walkerlee isn't this code just removing '-L' from each library and then adding it back at the end?

Would the appropriate course of action not be just to split pkg_libpath on whitespace?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whitespace isn't safe -- /foo/my files/. Output from pkg_config should avoid being parsed if possible.


default_libs = getattr(options, shared_lib + '_libname')
default_libs = map('-l{0}'.format, default_libs.split(','))
Expand Down