Index: lldb/packages/Python/lldbsuite/test/functionalities/load_unload/Makefile =================================================================== --- lldb/packages/Python/lldbsuite/test/functionalities/load_unload/Makefile +++ lldb/packages/Python/lldbsuite/test/functionalities/load_unload/Makefile @@ -2,11 +2,15 @@ LIB_PREFIX := loadunload_ -LD_EXTRAS := -L. -l$(LIB_PREFIX)d -ldl +LD_EXTRAS := -L. -l$(LIB_PREFIX)d CXX_SOURCES := main.cpp include $(LEVEL)/Makefile.rules +ifneq ($(OS),NetBSD) +LD_EXTRAS += -ldl +endif + a.out: lib_a lib_b lib_c lib_d hidden_lib_d install_name_tool lib_%: Index: lldb/packages/Python/lldbsuite/test/functionalities/load_using_paths/Makefile =================================================================== --- lldb/packages/Python/lldbsuite/test/functionalities/load_using_paths/Makefile +++ lldb/packages/Python/lldbsuite/test/functionalities/load_using_paths/Makefile @@ -1,10 +1,14 @@ LEVEL := ../../make CXX_SOURCES := main.cpp -LD_EXTRAS := -ldl +LD_EXTRAS := include $(LEVEL)/Makefile.rules +ifneq ($(OS),NetBSD) +LD_EXTRAS += -ldl +endif + all: hidden_lib a.out hidden_lib: