Skip to content
Snippets Groups Projects
Commit e7450877 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Add -Wl,--no-as-needed to Linux builds by default to support Altera FPGAs more...

Add -Wl,--no-as-needed to Linux builds by default to support Altera FPGAs more easily (#132 on Github)
parent 39df4249
No related branches found
No related tags found
No related merge requests found
......@@ -67,7 +67,13 @@ def get_config_schema():
else:
default_libs = ["OpenCL"]
default_ldflags = []
if "linux" in sys.platform:
# Requested in
# https://github.com/pyopencl/pyopencl/issues/132#issuecomment-314713573
# to make life with Altera FPGAs less painful by default.
default_ldflags = ["-Wl,--no-as-needed"]
else:
default_ldflags = []
return ConfigSchema([
Switch("CL_TRACE", False, "Enable OpenCL API tracing"),
......
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