We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b204c5 commit d096790Copy full SHA for d096790
sdk/mx.sdk/mx_sdk_vm_ng.py
@@ -734,6 +734,10 @@ def ldflags(self):
734
if not mx.is_windows():
735
_dynamic_ldflags += ['-pthread']
736
if self.uses_musl_swcfi_toolchain:
737
+ # Use $$ to escape the $ from expansion by mx. If we use musl swcfi
738
+ # and their libc, the libc++, libc++abi and libunwind must be
739
+ # either in the LD_LIBRARY_PATH (which takes precedence) or in the
740
+ # lib folder of the standalone.
741
_dynamic_ldflags.append(r"-Wl,-rpath,'$$ORIGIN/../lib'")
742
return super().ldflags + _dynamic_ldflags
743
0 commit comments