Skip to content
Snippets Groups Projects
Commit 920f623e authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

handle custom library inclusion

for linking against some particular libraries, it's necessary to add
"extra_libraries" such as '-Wl,--start-group'.
Therefore when the compile command is now constructed, "extra_libraries"
are checked to see whether they start with '-' or '/' (for static
libraries given as full file names).
parent 5f78b271
No related branches found
No related tags found
1 merge request!23WIP: Feature/use cmake
Pipeline #
......@@ -214,7 +214,10 @@ class _code(_base):
command_strings.append('-Wl,-rpath=' + bfps.lib_dir)
for libname in libraries:
command_strings += ['-l' + libname]
if libname[0] not in ['-', '/']:
command_strings += ['-l' + libname]
else:
command_strings += [libname]
command_strings += ['-fopenmp']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment