Whamcloud - gitweb
libext2fs: unix_io: fix_potential error path deadlock in flush_cached_blocks()
[tools/e2fsprogs.git] / lib / Makefile.profile
index 1e07b35..180f5bc 100644 (file)
@@ -14,7 +14,8 @@ $(LIBRARY)_p.a: $(OBJS)
        $(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"