packages/libs/ezxml/patches/101-build_shared.patch
rhk c804b40766 [packages] ezxml: clean patch headers and new ezxml_cut patch
git-svn-id: svn://svn.openwrt.org/openwrt/packages@23053 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-09-13 14:46:43 +00:00

27 lines
452 B
Diff

--- a/GNUmakefile
+++ b/GNUmakefile
@@ -28,6 +28,7 @@ RM = rm -f
DEBUG_CFLAGS = -O0 -g
OBJS = ezxml.o
LIB = libezxml.a
+DYN = libezxml.so
TEST = ezxmltest
ifdef NOMMAP
CFLAGS += -D EZXML_NOMMAP
@@ -36,11 +37,14 @@ ifdef DEBUG
CFLAGS += $(DEBUG_CFLAGS)
endif
-all: $(LIB)
+all: $(LIB) $(DYN)
$(LIB): $(OBJS)
$(AR) rcs $(LIB) $(OBJS)
+$(DYN): $(OBJS)
+ $(CC) -shared -o $(DYN) $(OBJS)
+
nommap: CFLAGS += -D EZXML_NOMMAP
nommap: all