fixed copying of library links in install target master
authorJohn Tsiombikas <nuclear@mutantstargoat.com>
Thu, 7 Jan 2016 17:19:36 +0000 (19:19 +0200)
committerJohn Tsiombikas <nuclear@mutantstargoat.com>
Thu, 7 Jan 2016 17:19:36 +0000 (19:19 +0200)
Makefile

index cfbb34d..f1d2d83 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -74,8 +74,8 @@ install: $(alib) $(solib)
        cp $(solib) $(DESTDIR)$(PREFIX)/lib/$(solib)
        [ -n "$(soname)" ] && \
                rm -f $(DESTDIR)$(PREFIX)/lib/$(soname) $(DESTDIR)$(PREFIX)/lib/$(ldname) && \
        cp $(solib) $(DESTDIR)$(PREFIX)/lib/$(solib)
        [ -n "$(soname)" ] && \
                rm -f $(DESTDIR)$(PREFIX)/lib/$(soname) $(DESTDIR)$(PREFIX)/lib/$(ldname) && \
-               cp $(soname) $(DESTDIR)$(PREFIX)/lib/$(soname) && \
-               cp $(ldname) $(DESTDIR)$(PREFIX)/lib/$(ldname) || true
+               cp -a $(soname) $(DESTDIR)$(PREFIX)/lib/$(soname) && \
+               cp -a $(ldname) $(DESTDIR)$(PREFIX)/lib/$(ldname) || true
 
 .PHONY: uninstall
 uninstall:
 
 .PHONY: uninstall
 uninstall: