build: Move ld.hugetlbfs into our share directory and symlink it to ld so
that using it can be as easy as gcc -B/usr/share/libhugetlbfs/. Also move
our custom ld scripts under our share dir to keep our files together.

Signed-off-by: Steve Fox <[EMAIL PROTECTED]>

diff --git a/Makefile b/Makefile
index 998f74d..f11eba5 100644
--- a/Makefile
+++ b/Makefile
@@ -57,8 +57,8 @@ endif
 
 LIBDIR32 = $(DESTDIR)$(PREFIX)/$(LIB32)
 LIBDIR64 = $(DESTDIR)$(PREFIX)/$(LIB64)
-LDSCRIPTDIR = $(PREFIX)/$(LIB32)/ldscripts
-BINDIR = $(DESTDIR)$(PREFIX)/bin
+LDSCRIPTDIR = $(PREFIX)/share/libhugetlbfs/ldscripts
+BINDIR = $(DESTDIR)$(PREFIX)/share/libhugetlbfs
 SBINDIR = $(DESTDIR)$(PREFIX)/sbin
 DOCDIR = $(DESTDIR)$(PREFIX)/share/doc/libhugetlbfs
 
@@ -206,6 +206,7 @@ install: all $(OBJDIRS:%=%/install) $(IN
        $(INSTALL) -d $(BINDIR)
        for x in $(INSTALL_OBJSCRIPT); do \
                $(INSTALL) -m 755 objscript.$$x $(BINDIR)/$$x; done
+       cd $(BINDIR) && ln -s ld.hugetlbfs ld
 
 install-docs:
        $(INSTALL) -d $(DOCDIR)

-- 

Steve Fox
IBM Linux Technology Center

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Libhugetlbfs-devel mailing list
Libhugetlbfs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel

Reply via email to