Add ezxml (#4362), thanks Raphael
[openwrt/svn-archive/archive.git] / libs / ezxml / patches / 101-build_shared.patch
1 diff -pruN ezxml-0.8.6.orig/GNUmakefile ezxml-0.8.6/GNUmakefile
2 --- ezxml-0.8.6.orig/GNUmakefile 2008-12-16 15:22:46.773434689 +0100
3 +++ ezxml-0.8.6/GNUmakefile 2008-12-16 15:22:27.337440224 +0100
4 @@ -28,6 +28,7 @@ RM = rm -f
5 DEBUG_CFLAGS = -O0 -g
6 OBJS = ezxml.o
7 LIB = libezxml.a
8 +DYN = libezxml.so
9 TEST = ezxmltest
10 ifdef NOMMAP
11 CFLAGS += -D EZXML_NOMMAP
12 @@ -36,11 +37,14 @@ ifdef DEBUG
13 CFLAGS += $(DEBUG_CFLAGS)
14 endif
15
16 -all: $(LIB)
17 +all: $(LIB) $(DYN)
18
19 $(LIB): $(OBJS)
20 $(AR) rcs $(LIB) $(OBJS)
21
22 +$(DYN): $(OBJS)
23 + $(CC) -shared -o $(DYN) $(OBJS)
24 +
25 nommap: CFLAGS += -D EZXML_NOMMAP
26 nommap: all
27