summaryrefslogtreecommitdiffstats
path: root/src/glsl/Makefile.am
diff options
context:
space:
mode:
authorVinson Lee <vlee@freedesktop.org>2013-11-19 23:24:11 -0800
committerKenneth Graunke <kenneth@whitecape.org>2013-11-27 10:37:37 -0800
commit9bf41f09abe3f044a04a71ac4e88192b824893af (patch)
treef6116938f0d0d88d2346a076ab0c17664b349fd5 /src/glsl/Makefile.am
parentc4815f6cd6f659acd361f1b4cf63473a46ca7de9 (diff)
glsl: Link glcpp with math library.
This patch fixes this build error with Oracle Solaris Studio. libtool: link: /opt/solarisstudio12.3/bin/cc -g -o glcpp/glcpp glcpp.o prog_hash_table.o ./.libs/libglcpp.a Undefined first referenced symbol in file sqrt prog_hash_table.o Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/glsl/Makefile.am')
-rw-r--r--src/glsl/Makefile.am4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/glsl/Makefile.am b/src/glsl/Makefile.am
index b9ed5b62b53..27e180e0ac9 100644
--- a/src/glsl/Makefile.am
+++ b/src/glsl/Makefile.am
@@ -111,7 +111,9 @@ libglcpp_la_SOURCES = \
glcpp_glcpp_SOURCES = \
glcpp/glcpp.c \
$(top_srcdir)/src/mesa/program/prog_hash_table.c
-glcpp_glcpp_LDADD = libglcpp.la
+glcpp_glcpp_LDADD = \
+ libglcpp.la \
+ -lm
libglsl_la_LIBADD = libglcpp.la
libglsl_la_SOURCES = \