Commit d493e6cd987a2d0c6b7d1df1c28883f1974260a9

Robert Millan 2006-03-25T20:03:00

Move shared library to /lib Needed by binaries in /bin and /sbin.

diff --git a/Makefile b/Makefile
index 3f5a798..6a6942f 100644
--- a/Makefile
+++ b/Makefile
@@ -53,15 +53,15 @@ $(LIB_SHARED): $(LIB_SHARED_OBJS)
 	  -o $@ $^
 
 install: libs
-	mkdir -p $(DESTDIR)/usr/lib/
+	mkdir -p $(DESTDIR)/usr/lib/ $(DESTDIR)/lib/
 	mkdir -p $(DESTDIR)/usr/include/bsd/
 	mkdir -p $(DESTDIR)/usr/share/man/man3
 	install -m644 $(LIB_STATIC) $(DESTDIR)/usr/lib/
-	install -m644 $(LIB_SHARED) $(DESTDIR)/usr/lib/
+	install -m644 $(LIB_SHARED) $(DESTDIR)/lib/
 	for i in $(LIB_INCLUDES) ; do install -m644 include/$$i $(DESTDIR)/usr/include/$$i ; done
 	install -m644 $(LIB_MANS) $(DESTDIR)/usr/share/man/man3
-	cd $(DESTDIR)/usr/lib/ ; ln -fs $(LIB_SHARED) $(LIB_SHARED_SO)
-	cd $(DESTDIR)/usr/lib/ ; ln -fs $(LIB_SHARED) $(LIB_SONAME)
+	ln -sf /lib/$(LIB_SHARED) $(DESTDIR)/usr/lib/$(LIB_SHARED_SO)
+	ln -sf $(LIB_SHARED) $(DESTDIR)/lib/$(LIB_SONAME)
 
 clean:
 	rm -f $(LIB_STATIC_OBJS)