Whamcloud - gitweb
Change the xattr entry hash to use an unsighed char by default
[tools/e2fsprogs.git] / lib / Makefile.darwin-lib
index a26200b..95e8ee0 100644 (file)
@@ -24,11 +24,13 @@ image:              $(BSD_LIB)
 $(BSD_LIB): $(OBJS)
        $(E) "  GEN_BSD_SOLIB $(BSD_LIB)"
        $(Q) (cd pic; $(CC) -dynamiclib -compatibility_version 1.0 -current_version $(BSDLIB_VERSION) \
-               -flat_namespace -undefined warning -o $(BSD_LIB) $(OBJS))
+               -install_name $(BSDLIB_INSTALL_DIR)/$(BSD_LIB) \
+               -undefined dynamic_lookup -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 +40,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)