targets/opencl: resolve undefined symbols at link time
authorEmil Velikov <emil.l.velikov@gmail.com>
Sun, 23 Feb 2014 20:29:57 +0000 (20:29 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 24 Feb 2014 14:59:39 +0000 (14:59 +0000)
Current automake build does not try to resolve undefined
symbols thus we could end up with a broken library.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/gallium/targets/opencl/Makefile.am

index 7b32a099b29403f17aa9bd4746b8776e5b9272cc..a94a518660c38dfc59d329f40b1f53475efb384e 100644 (file)
@@ -4,6 +4,7 @@ lib_LTLIBRARIES = lib@OPENCL_LIBNAME@.la
 
 lib@OPENCL_LIBNAME@_la_LDFLAGS = \
        $(LLVM_LDFLAGS) \
+       -no-undefined \
        -version-number 1:0
 
 lib@OPENCL_LIBNAME@_la_LIBADD = \