From a7a18dea466fb0b38ff21dc0e86617399a5072c0 Mon Sep 17 00:00:00 2001 From: Andy Spencer Date: Wed, 23 May 2012 04:38:20 +0000 Subject: [PATCH] Fix compile with glut --- src/plugins/Makefile.am | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/plugins/Makefile.am b/src/plugins/Makefile.am index 7c087a1..5fc085d 100644 --- a/src/plugins/Makefile.am +++ b/src/plugins/Makefile.am @@ -21,14 +21,17 @@ map_la_SOURCES = map.c map.h env_la_SOURCES = env.c env.h test_la_SOURCES = test.c test.h +env_la_CPPFLAGS = $(AM_CPPFLAGS) +env_la_LDFLAGS = $(AM_LDFLAGS) + if HAVE_GLUT noinst_LTLIBRARIES = teapot.la teapot_la_SOURCES = \ $(top_srcdir)/examples/plugin/teapot.c \ $(top_srcdir)/examples/plugin/teapot.h teapot_la_LDFLAGS = $(AM_LDFLAGS) -lglut -rpath $(libdir) # I hate you libtool -env_la_CPPFLAGS = $(AM_CPPFLAGS) -DHAVE_GLUT -env_la_LDFLAGS = $(AM_LDFLAGS) -lglut +env_la_CPPFLAGS += -DHAVE_GLUT +env_la_LDFLAGS += -lglut endif test: -- 2.43.2