From e4eed9b48677c7a2ef608a2d49794afb474b4712 Mon Sep 17 00:00:00 2001 From: Hans Gaiser Date: Mon, 17 Dec 2018 11:28:23 +0100 Subject: [PATCH] Don't add -l prefix if it already exists. --- cmake/sip_configure.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/sip_configure.py b/cmake/sip_configure.py index ed7aa7c..1dfa1cb 100644 --- a/cmake/sip_configure.py +++ b/cmake/sip_configure.py @@ -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)