From 1e082c62093f34432af236f35764002646f1dcfc Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Sat, 4 Jun 2011 11:24:18 -0400 Subject: [PATCH] libcom_err: Fix install rule if installing with hard links If $(LINK_INSTALL_FLAGS) is -f instead of -sf, the Makefile's install rule would not work correctly while installing com_err.h Signed-off-by: "Theodore Ts'o" --- lib/et/Makefile.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/et/Makefile.in b/lib/et/Makefile.in index 203dbac..19aa7d2 100644 --- a/lib/et/Makefile.in +++ b/lib/et/Makefile.in @@ -96,7 +96,8 @@ install:: compile_et libcom_err.a $(HFILES) installdirs com_err.pc echo " INSTALL_DATA $(includedir)/et/$$i"; \ $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(includedir)/et/$$i; \ done - $(Q) $(LN) $(LINK_INSTALL_FLAGS) $(includedir)/et/com_err.h $(DESTDIR)$(includedir) + $(Q) (cd $(DESTDIR)$(includedir) ;\ + $(LN) $(LINK_INSTALL_FLAGS) et/com_err.h . ) $(Q) for i in $(SHARE_FILES); do \ echo " INSTALL_DATA $(datadir)/et/$$i"; \ $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(datadir)/et/$$i; \ -- 1.8.3.1