SOURCES: dutimer-build.patch (NEW) - to use CC and CXX in spec - f...
darekr
darekr at pld-linux.org
Tue Dec 5 18:20:26 CET 2006
Author: darekr Date: Tue Dec 5 17:20:26 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- to use CC and CXX in spec
- fix error - 'main must return int'
---- Files affected:
SOURCES:
dutimer-build.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/dutimer-build.patch
diff -u /dev/null SOURCES/dutimer-build.patch:1.1
--- /dev/null Tue Dec 5 18:20:26 2006
+++ SOURCES/dutimer-build.patch Tue Dec 5 18:20:20 2006
@@ -0,0 +1,42 @@
+--- dutimer-0.4.1/Makefile.orig 2006-12-05 18:03:16.000000000 +0100
++++ dutimer-0.4.1/Makefile 2006-12-05 18:05:50.000000000 +0100
+@@ -7,19 +7,19 @@
+ cat doc/LANGS
+
+ pl: dutimerpl.cpp ppidof.h ppidof.c
+- g++ -g -c ppidof.c
+- g++ -g -c dutimerpl.cpp
+- g++ dutimerpl.o ppidof.o -o dutimer
++ $(CC) -g -c ppidof.c
++ $(CXX) -g -c dutimerpl.cpp
++ $(CXX) dutimerpl.o ppidof.o -o dutimer
+
+ bpl: dutimerbpl.cpp ppidof.h ppidof.c
+- g++ -g -c ppidof.c
+- g++ -g -c dutimerbpl.cpp
+- g++ dutimerbpl.o ppidof.o -o dutimer
++ $(CXX) -g -c ppidof.c
++ $(CXX) -g -c dutimerbpl.cpp
++ $(CXX) dutimerbpl.o ppidof.o -o dutimer
+
+ en: dutimeren.cpp ppidof.h ppidof.c
+- g++ -g -c ppidof.c
+- g++ -g -c dutimeren.cpp
+- g++ dutimeren.o ppidof.o -o dutimer
++ $(CC) -g -c ppidof.c
++ $(CXX) -g -c dutimeren.cpp
++ $(CXX) dutimeren.o ppidof.o -o dutimer
+
+ install:
+ cp dutimer /usr/local/sbin
+--- dutimer-0.4.1/dutimerpl.cpp.orig 2006-12-05 18:07:36.000000000 +0100
++++ dutimed-0.4.1/dutimerpl.cpp 2006-12-05 18:07:48.000000000 +0100
+@@ -658,7 +658,7 @@
+ // ======================= Główna część programu =====================
+
+
+-void main(int argc, char * argv[])
++int main(int argc, char * argv[])
+ {
+ cout << "\nDial Up Timer v0.4.1";
+ cout << "\n1998 PaGer";
================================================================
More information about the pld-cvs-commit
mailing list