]> git.pld-linux.org Git - packages/bridge-utils.git/blob - bridge-utils-opt.patch
- adapted prev patch
[packages/bridge-utils.git] / bridge-utils-opt.patch
1 diff -uNr bridge.org/brctl/Makefile bridge/brctl/Makefile
2 --- bridge.org/brctl/Makefile   Wed Apr  5 00:14:36 2000
3 +++ bridge/brctl/Makefile       Thu Sep 21 15:08:50 2000
4 @@ -1,10 +1,10 @@
5  all:                   brctl brctld
6  
7  brctl:                 brctl.o brctl_cmd.o brctl_disp.o ../libbridge/libbridge.a
8 -                       gcc -Wall -g -o brctl brctl.o brctl_cmd.o brctl_disp.o ../libbridge/libbridge.a
9 +                       gcc -Wall $(OPT) -g -o brctl brctl.o brctl_cmd.o brctl_disp.o ../libbridge/libbridge.a
10  
11  brctld:                        brctld.o brctl_cmd.o brctl_disp.o ../libbridge/libbridge.a
12 -                       gcc -Wall -g -o brctld brctld.o brctl_cmd.o brctl_disp.o ../libbridge/libbridge.a
13 +                       gcc -Wall $(OPT) -g -o brctld brctld.o brctl_cmd.o brctl_disp.o ../libbridge/libbridge.a
14  
15  clean:
16                         rcsclean *
17 @@ -15,13 +15,13 @@
18                         rm -f core
19  
20  brctl.o:               brctl.c brctl.h
21 -                       gcc -I../libbridge -Wall -c -g -o brctl.o brctl.c
22 +                       gcc -I../libbridge -Wall -c -g $(OPT) -o brctl.o brctl.c
23  
24  brctld.o:              brctld.c brctl.h
25 -                       gcc -I../libbridge -Wall -c -g -o brctld.o brctld.c
26 +                       gcc -I../libbridge -Wall -c -g $(OPT) -o brctld.o brctld.c
27  
28  brctl_cmd.o:           brctl_cmd.c brctl.h
29 -                       gcc -I../libbridge -Wall -c -g -o brctl_cmd.o brctl_cmd.c
30 +                       gcc -I../libbridge -Wall -c -g $(OPT) -o brctl_cmd.o brctl_cmd.c
31  
32  brctl_disp.o:          brctl_disp.c brctl.h
33 -                       gcc -I../libbridge -Wall -c -g -o brctl_disp.o brctl_disp.c
34 +                       gcc -I../libbridge -Wall -c -g $(OPT) -o brctl_disp.o brctl_disp.c
35 diff -uNr bridge.org/libbridge/Makefile bridge/libbridge/Makefile
36 --- bridge.org/libbridge/Makefile       Wed Apr  5 00:14:36 2000
37 +++ bridge/libbridge/Makefile   Thu Sep 21 15:09:43 2000
38 @@ -1,4 +1,4 @@
39 -CC = gcc -Wall -c -g
40 +CC = gcc -Wall $(OPT) -c -g
41  
42  all:                   libbridge.a
43  
44 diff -uNr bridge.org/libbridge/libbridge.h bridge/libbridge/libbridge.h
45 --- bridge.org/libbridge/libbridge.h    Wed Apr  5 00:14:37 2000
46 +++ bridge/libbridge/libbridge.h        Thu Sep 21 15:21:05 2000
47 @@ -124,11 +124,14 @@
48  int br_set_stp_state(struct bridge *br, int stp_state);
49  int br_set_bridge_priority(struct bridge *br, int bridge_priority);
50  int br_set_port_priority(struct port *p, int port_priority);
51 -int br_set_path_cost(struct port *p, int path_cost);
52 +int br_read_fdb(struct bridge *br, struct fdb_entry *fdbs, int offset, int num);
53  int br_read_fdb(struct bridge *br, struct fdb_entry *fdbs, int offset, int num);
54  
55 +#ifndef __GLIBC__
56  /* libc5 combatability */
57  char *if_indextoname(unsigned int __ifindex, char *__ifname);
58  unsigned int if_nametoindex(const char *__ifname);
59 +
60 +#endif
61  
62  #endif
63 diff -uNr bridge.org/misc/Makefile bridge/misc/Makefile
64 --- bridge.org/misc/Makefile    Wed Apr  5 00:14:37 2000
65 +++ bridge/misc/Makefile        Thu Sep 21 15:11:21 2000
66 @@ -9,7 +9,7 @@
67                 rm -f tap
68  
69  bidi:          bidi.c
70 -               gcc -Wall -g -o bidi bidi.c
71 +               gcc -Wall -g $(OPT) -o bidi bidi.c
72  
73  tap:           tap.c
74 -               gcc -Wall -g -o tap tap.c
75 +               gcc -Wall -g $(OPT) -o tap tap.c
This page took 0.097046 seconds and 4 git commands to generate.