Skip to content

Commit

Permalink
Don't add -l prefix if it already exists. (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
hgaiser authored and dirk-thomas committed Jan 2, 2019
1 parent 49031b3 commit 0a48937
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmake/sip_configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ def __init__(self):


def custom_platform_lib_function(self, clib, framework=0):
if os.path.isabs(clib):
# Only add '-l' if a library doesn't already start with '-l' and is not an absolute path
if os.path.isabs(clib) or clib.startswith('-l'):
return clib
return default_platform_lib_function(self, clib, framework)

Expand Down

0 comments on commit 0a48937

Please sign in to comment.