|
215 | 215 | pl.add_definitions("Py_PYTHON_H") |
216 | 216 | pl.add_source_files("../../pilotlight/extensions/pl_platform_macos_ext.m") |
217 | 217 | pl.add_compiler_flags("-fPIC") |
218 | | - pl.add_linker_flags("-ldl -lm") |
| 218 | + pl.add_linker_flags("-ldl -lm", "-undefined dynamic_lookup") |
219 | 219 |
|
220 | 220 | with pl.configuration("deploy"): |
221 | 221 |
|
|
242 | 242 | pl.add_definitions("Py_PYTHON_H") |
243 | 243 | pl.add_source_files("../../pilotlight/extensions/pl_platform_macos_ext.m") |
244 | 244 | pl.add_compiler_flags("-fPIC") |
245 | | - pl.add_linker_flags("-ldl -lm") |
| 245 | + pl.add_linker_flags("-ldl -lm", "-undefined dynamic_lookup") |
246 | 246 |
|
247 | 247 | #----------------------------------------------------------------------------- |
248 | 248 | # [SECTION] examples |
|
349 | 349 | with pl.compiler("clang"): |
350 | 350 | pl.add_definitions("PL_METAL_BACKEND") |
351 | 351 | 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") |
353 | 353 | pl.add_link_frameworks("Metal", "MetalKit", "Cocoa", "IOKit", "CoreVideo", "QuartzCore") |
354 | 354 | pl.add_dynamic_link_libraries("shaderc_shared", "spirv-cross-c-shared") |
355 | 355 | pl.add_static_link_libraries("glfwd", "pl_platform_ext") |
|
614 | 614 | pl.set_output_binary("pilotlight") |
615 | 615 | pl.set_output_binary_extension(".so") |
616 | 616 | 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") |
618 | 618 | pl.add_link_frameworks("Metal", "MetalKit", "Cocoa", "IOKit", "CoreVideo", "QuartzCore") |
619 | 619 | pl.add_dynamic_link_libraries("shaderc_shared", "spirv-cross-c-shared") |
620 | 620 | pl.add_static_link_libraries("glfwd", "pl_platform_ext") |
|
0 commit comments