]> git.sesse.net Git - movit/commitdiff
Revert "Stop using -rpath when linking libmovit."
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 16 Mar 2014 21:13:45 +0000 (22:13 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 16 Mar 2014 21:13:45 +0000 (22:13 +0100)
Actually, this is seemingly needed to build shared libraries at all. Doh.

This reverts commit 05466cbaae2befac3d3ab8bbba614bc08646d3f2.

Makefile.in

index 76929cdb1f0ca12a297b1c2a658239902c3e37bf..c05603972d816741005350b1e9128e0dbc6c7e61 100644 (file)
@@ -112,7 +112,7 @@ demo: libmovit.la $(DEMO_OBJS)
 
 # The library itself.
 libmovit.la: $(LIB_OBJS:.o=.lo)
-       $(LIBTOOL) --mode=link $(CXX) $(LDFLAGS) -version-info $(movit_ltversion) -o $@ $^ $(LDLIBS)
+       $(LIBTOOL) --mode=link $(CXX) $(LDFLAGS) -rpath $(libdir) -version-info $(movit_ltversion) -o $@ $^ $(LDLIBS)
 
 %.lo: %.cpp
        $(LIBTOOL) --mode=compile $(CXX) -MMD -MP $(CPPFLAGS) $(CXXFLAGS) -o $@ -c $<