diff --git a/userspace/Makefile b/userspace/Makefile index 25e948d86..73f24da72 100644 --- a/userspace/Makefile +++ b/userspace/Makefile @@ -104,7 +104,7 @@ $(OUT)/nvgpu_unit: $(OUT)/libnvgpu-drv.so $(CORE_OBJS) -o $(OUT)/nvgpu_unit $(CORE_OBJS) $(LIB_PATHS) $(LIBS) $(OUT)/libnvgpu-drv.so: $(OBJS) - $(CC) -shared -o $(OUT)/libnvgpu-drv.so $(OBJS) -lgcov -rdynamic + $(CC) -shared -Wl,--no-undefined -o $(OUT)/libnvgpu-drv.so $(OBJS) -lgcov -rdynamic # Default build target for all the nvgpu driver object files we want to build in # userspace. These get bundled into libnvgpu-drv.so.