From: Steinar H. Gunderson Date: Sun, 16 Mar 2014 22:01:29 +0000 (+0100) Subject: Do not link libmovit against SDL; only the unit tests need that. X-Git-Tag: 1.0.3~4 X-Git-Url: https://git.sesse.net/?p=movit;a=commitdiff_plain;h=ca67cec61c932c07d6504cb54bbd5e2343365397 Do not link libmovit against SDL; only the unit tests need that. --- diff --git a/Makefile.in b/Makefile.in index 3f8f0dc..5d0cb8a 100644 --- a/Makefile.in +++ b/Makefile.in @@ -22,7 +22,8 @@ with_coverage = @with_coverage@ CC=@CC@ CXX=@CXX@ CXXFLAGS=-Wall @CXXFLAGS@ -I$(GTEST_DIR)/include @Eigen3_CFLAGS@ @GLEW_CFLAGS@ @FFTW3_CFLAGS@ -LDFLAGS=@GLEW_LIBS@ @SDL_LIBS@ @FFTW3_LIBS@ -lpthread +LDFLAGS=@GLEW_LIBS@ @FFTW3_LIBS@ -lpthread +TEST_LDLIBS=@SDL_LIBS@ DEMO_LDLIBS=@SDL_image_LIBS@ -lrt -lpthread @libpng_LIBS@ @FFTW3_LIBS@ SHELL=@SHELL@ LIBTOOL=@LIBTOOL@ --tag=CXX @@ -101,7 +102,7 @@ gtest_sdl_main.o: gtest_sdl_main.cpp # Unit tests. $(TESTS): %: %.o $(TEST_OBJS) libmovit.la - $(LIBTOOL) --mode=link $(CXX) $(LDFLAGS) -o $@ $^ $(LDLIBS) + $(LIBTOOL) --mode=link $(CXX) $(LDFLAGS) -o $@ $^ $(LDLIBS) $(TEST_LDLIBS) OWN_OBJS=$(DEMO_OBJS) $(LIB_OBJS) $(OWN_TEST_OBJS) $(TESTS:=.o) OBJS=$(DEMO_OBJS) $(LIB_OBJS) $(TEST_OBJS) $(TESTS:=.o)