Whamcloud - gitweb
LU-13197 e2fsck: consistently use ext2fs_get_mem()
[tools/e2fsprogs.git] / lib / Makefile.darwin-lib
index a26200b..95cdd4b 100644 (file)
@@ -27,8 +27,9 @@ $(BSD_LIB): $(OBJS)
                -flat_namespace -undefined warning -o $(BSD_LIB) $(OBJS))
        $(Q) $(MV) pic/$(BSD_LIB) .
        $(Q) $(RM) -f ../$(BSD_LIB)
-       $(Q) $(LN) $(BSD_LIB) ../$(BSD_LIB)
-       $(Q) $(LN) ../$(BSD_LIB) ../$(BSDLIB_IMAGE).dylib
+       $(Q) (cd ..; $(LN) $(LINK_BUILD_FLAGS) \
+               `echo $(my_dir) | sed -e 's;lib/;;'`/$(BSD_LIB) $(BSD_LIB))
+       $(Q) (cd ..; $(LN) $(LINK_BUILD_FLAGS) $(BSD_LIB) $(BSDLIB_IMAGE).dylib)
 
 install-shlibs install:: $(BSD_LIB)
        $(E) "  INSTALL_PROGRAM $(BSDLIB_INSTALL_DIR)/$(BSD_LIB)"
@@ -38,7 +39,7 @@ install-shlibs install:: $(BSD_LIB)
 
 install-strip: install
 
-install-shlibs-strip: install-shlibs
+install-shlibs-strip:: install-shlibs
 
 uninstall-shlibs uninstall::
        $(RM) -f $(DESTDIR)$(BSDLIB_INSTALL_DIR)/$(BSD_LIB)