Skip to content

Commit 9bbe07a

Browse files
committed
WIP
1 parent 6695807 commit 9bbe07a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/gen_build.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@
215215
pl.add_definitions("Py_PYTHON_H")
216216
pl.add_source_files("../../pilotlight/extensions/pl_platform_macos_ext.m")
217217
pl.add_compiler_flags("-fPIC")
218-
pl.add_linker_flags("-ldl -lm")
218+
pl.add_linker_flags("-ldl -lm", "-undefined dynamic_lookup")
219219

220220
with pl.configuration("deploy"):
221221

@@ -242,7 +242,7 @@
242242
pl.add_definitions("Py_PYTHON_H")
243243
pl.add_source_files("../../pilotlight/extensions/pl_platform_macos_ext.m")
244244
pl.add_compiler_flags("-fPIC")
245-
pl.add_linker_flags("-ldl -lm")
245+
pl.add_linker_flags("-ldl -lm", "-undefined dynamic_lookup")
246246

247247
#-----------------------------------------------------------------------------
248248
# [SECTION] examples
@@ -349,7 +349,7 @@
349349
with pl.compiler("clang"):
350350
pl.add_definitions("PL_METAL_BACKEND")
351351
pl.add_compiler_flags("-fPIC", "--debug -g", "-fmodules", "-ObjC++", "-arch arm64")
352-
pl.add_linker_flags("-ldl -lm")
352+
pl.add_linker_flags("-ldl -lm", "-undefined dynamic_lookup")
353353
pl.add_link_frameworks("Metal", "MetalKit", "Cocoa", "IOKit", "CoreVideo", "QuartzCore")
354354
pl.add_dynamic_link_libraries("shaderc_shared", "spirv-cross-c-shared")
355355
pl.add_static_link_libraries("glfwd", "pl_platform_ext")
@@ -614,7 +614,7 @@
614614
pl.set_output_binary("pilotlight")
615615
pl.set_output_binary_extension(".so")
616616
pl.add_compiler_flags("-fPIC", "--debug -g", "-std=c99", "-fmodules", "-ObjC", "-arch arm64")
617-
pl.add_linker_flags("-ldl -lm")
617+
pl.add_linker_flags("-ldl -lm", "-undefined dynamic_lookup")
618618
pl.add_link_frameworks("Metal", "MetalKit", "Cocoa", "IOKit", "CoreVideo", "QuartzCore")
619619
pl.add_dynamic_link_libraries("shaderc_shared", "spirv-cross-c-shared")
620620
pl.add_static_link_libraries("glfwd", "pl_platform_ext")

0 commit comments

Comments
 (0)