[ccache] SCO Unix 5.0.5 patch

Davlet Panech davlet_panech at yahoo.ca
Mon Feb 23 23:54:29 GMT 2004


Hello,

In SCO UNIX gethostname() requires -lsocket (you will have to re-run
autoconf):


--- ccache-2.3/configure.in     2003-09-28 00:52:09.000000000 -0400
+++ ccache-2.3-sco/configure.in 2004-02-23 17:44:23.000000000 -0500
@@ -29,6 +29,8 @@

 AC_CHECK_HEADERS(ctype.h strings.h stdlib.h string.h)

+AC_SEARCH_LIBS(gethostname, socket)
+
 AC_CHECK_FUNCS(realpath snprintf vsnprintf vasprintf asprintf mkstemp
gethostname)

 AC_CACHE_CHECK([for compar_fn_t in stdlib.h],ccache_cv_COMPAR_FN_T, [
--- ccache-2.3/Makefile.in      2003-09-28 00:48:17.000000000 -0400
+++ ccache-2.3-sco/Makefile.in  2004-02-23 17:46:24.000000000 -0500
@@ -10,6 +10,7 @@
 CC=@CC@
 CFLAGS=@CFLAGS@ -I.
 EXEEXT=@EXEEXT@
+LIBS=@LIBS@

 OBJS= ccache.o mdfour.o hash.o execute.o util.o args.o stats.o \
        cleanup.o snprintf.o unify.o
@@ -20,7 +21,7 @@
 docs: ccache.1 web/ccache-man.html

 ccache$(EXEEXT): $(OBJS) $(HEADERS)
-       $(CC) $(CFLAGS) -o $@ $(OBJS)
+       $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS)

 ccache.1: ccache.yo
        -yodl2man -o ccache.1 ccache.yo


______________________________________________________________________ 
Post your free ad now! http://personals.yahoo.ca


More information about the ccache mailing list