From 86ed7ade8858edce6349c31543006b9912e524cf Mon Sep 17 00:00:00 2001 From: Sagar Kamble Date: Tue, 21 May 2019 16:33:20 +0530 Subject: [PATCH] gpu: nvgpu: pass option -Wl,--no-defined while linking libnvgpu-drv.so make nvgpu host userspace build fail with undefined references. target builds have this check already. JIRA NVGPU-3062 Change-Id: I5d6f1bf2a80b5a7dd78c40ff80c684f576572f15 Signed-off-by: Sagar Kamble Reviewed-on: https://git-master.nvidia.com/r/2122825 GVS: Gerrit_Virtual_Submit Reviewed-by: Philip Elcan Reviewed-by: Alex Waterman Reviewed-by: mobile promotions Tested-by: mobile promotions --- userspace/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.