905301b45e34f039ae49444a16b41db9658741f7
[packages.git] / net / l7-protocols / patches / 100-testing_crosscompile.patch
1 Index: l7-protocols-2007-10-10/testing/Makefile
2 ===================================================================
3 --- l7-protocols-2007-10-10.orig/testing/Makefile       2007-10-31 14:40:41.000000000 -0500
4 +++ l7-protocols-2007-10-10/testing/Makefile    2007-10-31 14:40:41.000000000 -0500
5 @@ -1,19 +1,19 @@
6  all: randchars randprintable test_speed-kernel test_speed-userspace match_kernel
7  
8  randchars: randchars.c
9 -       gcc -O2 -o randchars randchars.c
10 +       $(CC) -O2 -o randchars randchars.c
11  
12  randprintable: randprintable.c
13 -       gcc -O2 -o randprintable randprintable.c
14 +       $(CC) -O2 -o randprintable randprintable.c
15  
16  test_speed-kernel: test_speed-kernel.c
17 -       gcc -o test_speed-kernel test_speed-kernel.c
18 +       $(CC) -o test_speed-kernel test_speed-kernel.c
19  
20  test_speed-userspace: test_speed-userspace.cpp l7-parse-patterns.cpp l7-parse-patterns.h
21 -       g++ -Wall -o test_speed-userspace test_speed-userspace.cpp l7-parse-patterns.cpp
22 +       $(CXX) -Wall -o test_speed-userspace test_speed-userspace.cpp l7-parse-patterns.cpp
23  
24  match_kernel: match-kernel.c
25 -       gcc -O2 -o match_kernel match-kernel.c
26 +       $(CC) -O2 -o match_kernel match-kernel.c
27  
28  clean:
29         rm -f randprintable randchars test_speed-kernel test_speed-userspace match_kernel