It's amazing how much work you do to make changes to your code which bring you no benefits, you try to make it compatible with Darwin, with cygwin and it still works on linux, that's great
EDIT:
You have to find references to "-lcrypt". The -lcrypt flag is not supported in Mac OS X. These functions are builtin to the OS and found in unistd.
-lcrypto works
Looks as its not as easy as one may think to write a multi-platform tool.
Now the question is, is there a strip code that works on cygwin and OS X? Maybe cygwin users just have to install a specific packet?
EDIT:
You have to find references to "-lcrypt". The -lcrypt flag is not supported in Mac OS X. These functions are builtin to the OS and found in unistd.
-lcrypto works
Looks as its not as easy as one may think to write a multi-platform tool.
Code:
Index: Makefile
===================================================================
--- MakefileÂÂÂÂ(revision 291)
+++ MakefileÂÂÂÂ(working copy)
@@ -84,7 +84,7 @@
#-------------------------------------------------------------------------------
VPATHÂÂÂÂÂÂÂÂ+= libwbfs
-LIBSÂÂÂÂÂÂÂÂ= -lcrypt
+LIBSÂÂÂÂÂÂÂÂ= -lcrypto
DEFINESÂÂÂÂÂÂÂÂ=ÂÂ-DLARGE_FILES -D_FILE_OFFSET_BITS=64
DEFINESÂÂÂÂÂÂÂÂ+= -DWWTÂÂÂÂÂÂÂÂ# enable WWT specific modifications in libwbfs
@@ -104,7 +104,7 @@
DEPFLAGSÂÂÂÂ= -MMD
-LDFLAGSÂÂÂÂÂÂÂÂ= -static-libgcc -Xlinker --strip-all
+LDFLAGSÂÂÂÂÂÂÂÂ= -static-libgcc -Xlinker
#LDFLAGSÂÂÂÂ+= -static
LDFLAGSÂÂÂÂÂÂÂÂ:= $(strip $(LDFLAGS))
@@ -147,6 +147,7 @@
$(ALL_STD_TOOLS): %: %.o $(STD_O) Makefile
ÂÂÂÂ@echo "***ÂÂÂÂtool $@ $(MODE)"
ÂÂÂÂ@$(CC) $(CFLAGS) $(DEFINES) $(LDFLAGS) [email protected] $(STD_O) -o $@
+ÂÂÂÂ@$(STRIP) $@
ÂÂÂÂ@mkdir -p bin/debug
ÂÂÂÂ@cp -p $@ bin
ÂÂÂÂ@if test -s $(MODE_FILE) && grep -Fq -e -DDEBUG $(MODE_FILE); then cp -p $@ bin/debug; fi
@@ -157,6 +158,7 @@
$(ALL_WBFS_TOOLS): %: %.o $(ALL_O) Makefile
ÂÂÂÂ@echo "***ÂÂÂÂtool $@ $(MODE)"
ÂÂÂÂ@$(CC) $(CFLAGS) $(DEFINES) $(LDFLAGS) [email protected] $(ALL_O) $(LIBS) -o $@
+ÂÂÂÂ@$(STRIP) $@
ÂÂÂÂ@mkdir -p bin/debug
ÂÂÂÂ@cp -p $@ bin
ÂÂÂÂ@if test -s $(MODE_FILE) && grep -Fq -e -DDEBUG $(MODE_FILE); then cp -p $@ bin/debug; fi