fix kmod-sched build on 2.4
[openwrt.git] / openwrt / package / cbtt / patches / 100-compile.patch
1 diff -Nur cbtt80-20060211-src/Makefile cbtt80-20060211-src.patched/Makefile
2 --- cbtt80-20060211-src/Makefile 2006-02-07 18:44:58.000000000 +0100
3 +++ cbtt80-20060211-src.patched/Makefile 2006-03-15 09:01:35.000000000 +0100
4 @@ -1,6 +1,5 @@
5 SHELL = /bin/sh
6 SYSTEM = $(shell uname)
7 -C++ = g++
8 DFLAGS =
9 OFLAGS = -O2 -w
10 LFLAGS = -L. -lz
11 @@ -40,19 +39,19 @@
12 all: $(OBJS) $(OBJS_BNBT) $(OBJS_BNBTMYSQL) $(PROGS)
13
14 ./bnbt: $(OBJS) $(OBJS_BNBT)
15 - $(C++) -o ./bnbt $(OBJS) $(OBJS_BNBT) $(LFLAGS)
16 + $(CXX) -o ./bnbt $(OBJS) $(OBJS_BNBT) $(LFLAGS)
17
18 ./bnbtmysql: $(OBJS) $(OBJS_BNBTMYSQL)
19 - $(C++) -o ./bnbtmysql $(OBJS) $(OBJS_BNBTMYSQL) $(LFLAGS) -L/usr/lib/mysql -lmysqlclient
20 + $(CXX) -o ./bnbtmysql $(OBJS) $(OBJS_BNBTMYSQL) $(LFLAGS)
21
22 clean:
23 rm -f $(OBJS) $(OBJS_BNBT) $(OBJS_BNBTMYSQL) $(PROGS)
24
25 %.o: %.cpp
26 - $(C++) -o $@ $(CFLAGS) -c $<
27 + $(CXX) -o $@ $(CFLAGS) -c $<
28
29 %.mysql.o: %.cpp
30 - $(C++) -o $@ $(CFLAGS) -DBNBT_MYSQL -c $<
31 + $(CXX) -o $@ $(CFLAGS) -DBNBT_MYSQL -c $<
32
33 ./bnbt: $(OBJS) $(OBJS_BNBT)
34
35 @@ -91,4 +90,4 @@
36 bnbt_mysql.mysql.o: bnbt.h bnbt_mysql.h util.h
37 tracker.mysql.o: bnbt.h bnbt_mysql.h atom.h bencode.h config.h md5.h server.h sort.h tracker.h util.h
38 tracker_announce.mysql.o: bnbt.h bnbt_mysql.h atom.h bencode.h link.h tracker.h util.h
39 -tracker_scrape.mysql.o: bnbt.h bnbt_mysql.h atom.h bencode.h tracker.h util.h
40 \ No newline at end of file
41 +tracker_scrape.mysql.o: bnbt.h bnbt_mysql.h atom.h bencode.h tracker.h util.h
This page took 0.049599 seconds and 5 git commands to generate.