From: David Dykstra Date: Thu, 29 Oct 1998 22:28:56 +0000 (+0000) Subject: Fix for systems such as Unixware that have a cc that does not support -o X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/692da0b555f68e295bb588ab3a02c2354c2daba0 Fix for systems such as Unixware that have a cc that does not support -o with -c. --- diff --git a/Makefile.in b/Makefile.in index d9cabcbb..078f6db6 100644 --- a/Makefile.in +++ b/Makefile.in @@ -31,7 +31,9 @@ OBJS=$(OBJS1) $(OBJS2) $(DAEMON_OBJ) $(LIBOBJ) $(ZLIBOBJ) # note that the -I. is needed to handle config.h when using VPATH .c.o: - $(CC) -I. -I$(srcdir) $(CFLAGS) -c $< -o $@ +@OBJ_SAVE@ + $(CC) -I. -I$(srcdir) $(CFLAGS) -c $< @CC_SHOBJ_FLAG@ +@OBJ_RESTORE@ all: rsync diff --git a/configure.in b/configure.in index adc04ab6..bb28f5da 100644 --- a/configure.in +++ b/configure.in @@ -127,5 +127,30 @@ if test "$ac_cv_lib_socket_connect" = "yes" || AC_DEFINE(HAVE_CONNECT) fi]) +# +# The following test was mostly taken from the tcl/tk plus patches +# +echo $ac_n "checking whether -c -o works ... $ac_c" +rm -rf conftest* +cat > conftest.$ac_ext <