summaryrefslogtreecommitdiff
path: root/build/Makefile.cwmcc
diff options
context:
space:
mode:
Diffstat (limited to 'build/Makefile.cwmcc')
-rw-r--r--build/Makefile.cwmcc3
1 files changed, 2 insertions, 1 deletions
diff --git a/build/Makefile.cwmcc b/build/Makefile.cwmcc
index 4e17a7dd..5593519c 100644
--- a/build/Makefile.cwmcc
+++ b/build/Makefile.cwmcc
@@ -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))