optimize for size
[openwrt.git] / package / ser / patches / no-libfl.patch
1 diff -urN ser-0.9.0.old/Makefile.defs ser-0.9.0/Makefile.defs
2 --- ser-0.9.0.old/Makefile.defs 2004-12-16 18:50:40.000000000 +0100
3 +++ ser-0.9.0/Makefile.defs 2005-03-25 15:24:03.000000000 +0100
4 @@ -788,7 +788,7 @@
5 endif
6 YACC_FLAGS=-d -b cfg
7 # on solaris add -lxnet (e.g. LIBS= -lxnet)
8 -LIBS= -lfl -ldl -lresolv
9 +LIBS= -ldl -lresolv
10
11
12 #os specific stuff
13 @@ -826,7 +826,7 @@
14 endif
15 OLD_SOLARIS= $(shell echo "$(OSREL)" | \
16 sed -e 's/^5\.[0-6][^0-9]*$$/yes/' )
17 - LIBS+= -L/usr/local/lib -lfl -lxnet -lnsl
18 + LIBS+= -L/usr/local/lib -lxnet -lnsl
19 ifeq ($(OLD_SOLARIS), yes)
20 LIBS+=-lposix4
21 else
22 @@ -841,9 +841,9 @@
23 ifneq ($(found_lock_method), yes)
24 DEFS+= -DUSE_PTHREAD_MUTEX # try pthread sems
25 found_lock_method=yes
26 - LIBS= -pthread -lfl #dlopen is in libc
27 + LIBS= -pthread #dlopen is in libc
28 else
29 - LIBS= -lfl #dlopen is in libc
30 + LIBS= #dlopen is in libc
31 endif
32 YACC=yacc
33 endif
34 @@ -858,7 +858,7 @@
35 # (symbols on openbsd are prefixed by "_")
36 YACC=yacc
37 # no sched_yield on openbsd unless linking with c_r (not recommended)
38 - LIBS= -lfl
39 + LIBS=
40 OPENBSD_IS_AOUT= $(shell echo "$(OSREL)" | \
41 sed -e 's/^3\.[0-3][^0-9]*$$/yes/' |sed -e 's/^[0-2]\..*/yes/')
42 # exception: on sparc openbsd 3.2 is elf and not aout
43 @@ -885,7 +885,7 @@
44 found_lock_method=yes
45 endif
46 YACC=yacc
47 - LIBS= -lfl
48 + LIBS=
49 endif
50
51 # OS X support, same as freebsd
52 @@ -899,9 +899,9 @@
53 ifneq ($(found_lock_method), yes)
54 DEFS+= -DUSE_PTHREAD_MUTEX # try pthread sems
55 found_lock_method=yes
56 - LIBS= -pthread -lfl -lresolv #dlopen is in libc
57 + LIBS= -pthread -lresolv #dlopen is in libc
58 else
59 - LIBS= -lfl -lresolv #dlopen is in libc
60 + LIBS= -lresolv #dlopen is in libc
61 endif
62 LDFLAGS= # darwin doesn't like -O2 or -E
63 MOD_LDFLAGS= -bundle -bundle_loader ../../$(MAIN_NAME)
64 diff -urN ser-0.9.0.old/cfg.lex ser-0.9.0/cfg.lex
65 --- ser-0.9.0.old/cfg.lex 2004-11-30 17:28:23.000000000 +0100
66 +++ ser-0.9.0/cfg.lex 2005-03-25 15:27:49.000000000 +0100
67 @@ -90,6 +90,10 @@
68 static char* addstr(struct str_buf *, char*, int);
69 static void count();
70
71 + int yywrap(void)
72 + {
73 + return 1;
74 + }
75
76 %}
77
This page took 0.045445 seconds and 5 git commands to generate.