On Fri 9. of December 2005 21:42, darekr wrote:
> Author: darekr Date: Fri Dec 9 20:42:34 2005 GMT
> Module: SOURCES Tag: HEAD
> Log message:
> - new. to pass CC in spec file
>
> Files affected:
> SOURCES:
>sheerdns-Makefile.patch (NONE -> 1.1) (NEW)
>
> Diffs:
>
>
> Index: SOURCES/sheerdns-Makefile.patch
> diff -u /dev/null SOURCES/sheerdns-Makefile.patch:1.1
> --- /dev/null Fri Dec 9 21:42:34 2005
> +++ SOURCES/sheerdns-Makefile.patch Fri Dec 9 21:42:29 2005
> @@ -0,0 +1,25 @@
> +--- sheerdns/Makefile.orig 2005-12-09 21:20:33.0 +0100
> sheerdns/Makefile2005-12-09 21:20:50.0 +0100
> +@@ -1,4 +1,4 @@
> +-
> ++CC=""
^^- ŹLE - w przypadku, gdy CC nie jest przekazywane do make jest
używane cc - właśnie to zniszczyłeś.
info make
[...]
For example, the command used to compile a C source file actually
says `$(CC) -c $(CFLAGS) $(CPPFLAGS)'. The default values of the
variables used are `cc' and nothing, resulting in the command `cc -c'.
[...]
`CC'
Program for compiling C programs; default `cc'.
> + CFLAGS=-Wall -g -O0 -ansi -pedantic
> +
> + SRCS=$(wildcard *.c)
> +@@ -8,13 +8,13 @@
> + OBJECTS=$(SRCS:.c=.o)
> +
> + sheerdns: $(OBJECTS)
> +-gcc -o sheerdns $(OBJECTS)
> ++$(CC) -o sheerdns $(OBJECTS)
--
Tomasz Wittner
___
pld-devel-pl mailing list
pld-devel-pl@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-pl