Description: Add shared lib
 This patch adds a shared version of the library
Author: Roland Stigge <stigge@antcom.de>

--- libowfat-0.28.orig/GNUmakefile
+++ libowfat-0.28/GNUmakefile
@@ -15,10 +15,15 @@ textcode.a cdb.a
 
 all: $(LIBS) libowfat.a libsocket t
 
+SONAME=libowfat.so.0
+
 CROSS=
 #CROSS=i686-mingw-
 CC=$(CROSS)gcc
 CFLAGS=-pipe -W -Wall -O2 -fomit-frame-pointer
+ifeq ($(SHARED),1)
+CFLAGS+=-fPIC
+endif
 #CFLAGS=-pipe -Os -march=pentiumpro -mcpu=pentiumpro -fomit-frame-pointer -fschedule-insns2 -Wall
 
 # CFLAGS += -fstrict-aliasing -Wstrict-aliasing=2
@@ -313,3 +318,9 @@ Makefile: GNUmakefile dep libdep
 
 windoze:
 	$(MAKE) DIET= CROSS=i686-mingw32-
+
+libowfat.so: $(SONAME)
+	ln -sf $< $@
+
+$(SONAME): $(ALL_OBJS)
+	$(CC) -shared -Wl,-soname=$(SONAME) $(CFLAGS) $^ -o $@
