]> Dogcows Code - chaz/openbox/blobdiff - build/Makefile.render
buld fixes for the new libs
[chaz/openbox] / build / Makefile.render
index 58b2d5dbfc94dd6681599adc70db180ebf5b5480..6f99e5242f6a0ceebe00268985289cf03cc98a79 100644 (file)
@@ -17,7 +17,7 @@ depdir := $(depdir)/$(dir)
 all: $(target)
 
 $(target): $(objects)
-       $(LINK) -o $@ $^ $(LDFLAGS)
+       $(LINK) -rpath $(libdir) -o $@ $^ $(LDFLAGS)
 
 $(dir)/%.lo: $(srcdir)/%.c $(depdir)/%.d
        $(LTCOMPILE) -c -o $@ $<
@@ -31,6 +31,7 @@ install:
        $(INSTALL) -d $(DESTDIR)$(libdir)/
        $(LIBTOOL) --mode=install $(INSTALL) $(target) \
                $(DESTDIR)$(libdir)/$(notdir $(target))
+       $(LIBTOOL) --mode=finish $(DESTDIR)$(libdir)
 
 uninstall:
        $(LTRM) $(DESTDIR)$(libdir)/$(notdir $(target))
This page took 0.022686 seconds and 4 git commands to generate.