Add configure options --enable-symlink-build and --enable-symlink-install
These options allow e2fsprogs to be built using symlinks instead of
hard links, and to be installed using symlinks instead of hard links,
respectively.
Addresses-Sourceforge-Bug: #1436294
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
diff --git a/lib/Makefile.profile b/lib/Makefile.profile
index 1e07b35..180f5bc 100644
--- a/lib/Makefile.profile
+++ b/lib/Makefile.profile
@@ -14,7 +14,8 @@
$(Q) (cd profiled; $(ARUPD) ../$@ $(OBJS))
-$(Q) $(RANLIB) $@
$(Q) $(RM) -f ../$@
- $(Q) $(LN) $@ ../$@
+ $(Q) (cd ..; $(LN) $(LINK_BUILD_FLAGS) \
+ `echo $(my_dir) | sed -e 's;lib/;;'`/$@ $@)
install:: $(LIBRARY)_p.a installdirs
$(E) " INSTALL_DATA $(libdir)/$(LIBRARY)_p.a"