]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Have the ccache Makefile obey the settings of the CPPFLAGS and LDFLAGS
authorPaul Griffith <paulg@cse.yorku.ca>
Thu, 11 May 2006 21:44:44 +0000 (23:44 +0200)
committerPaul Griffith <paulg@cse.yorku.ca>
Thu, 11 May 2006 21:44:44 +0000 (23:44 +0200)
environment variables that are in force when the configure script is
executed.

Paul

Makefile.in

index 0bf3eb99d8d8eee9be71caf6d3269e0be62476b4..b29218242fe9ae6f5995605c26cbb9f37c36577e 100644 (file)
@@ -8,7 +8,9 @@ mandir=@mandir@
 INSTALLCMD=@INSTALL@
 
 CC=@CC@
-CFLAGS=@CFLAGS@ -I.
+CPPFLAGS=@CPPFLAGS@ -I.
+CFLAGS=$(CPPFLAGS) @CFLAGS@
+LDFLAGS=@LDFLAGS@
 EXEEXT=@EXEEXT@
 
 OBJS= ccache.o mdfour.o hash.o execute.o util.o args.o stats.o \
@@ -20,7 +22,7 @@ all: ccache$(EXEEXT)
 docs: ccache.1 web/ccache-man.html
 
 ccache$(EXEEXT): $(OBJS) $(HEADERS)
-       $(CC) $(CFLAGS) -o $@ $(OBJS)
+       $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS)
 
 ccache.1: ccache.yo
        -yodl2man -o ccache.1 ccache.yo