diff -up stk-4.3.1/src/Makefile.in.sharedlib stk-4.3.1/src/Makefile.in
--- stk-4.3.1/src/Makefile.in.sharedlib	2008-07-15 21:43:37.000000000 +0200
+++ stk-4.3.1/src/Makefile.in	2008-07-15 21:51:45.000000000 +0200
@@ -2,8 +2,13 @@
 ### libstk Makefile - for various flavors of unix
 
 LIBRARY = libstk.a
+SHAREDLIB = libstk.so
+MAJOR = 4
+RELEASE = 4.3.1
+
 AR = ar -rsc
 RM = /bin/rm
+LN = /bin/ln
 OBJECT_PATH = @object_path@
 vpath %.o $(OBJECT_PATH)
 
@@ -40,6 +45,9 @@ DEFS     = @byte_order@
 DEFS    += @debug@
 CFLAGS   = @CFLAGS@
 CFLAGS  += @warn@ $(INCLUDE) -Iinclude
+CFLAGS  += -fPIC
+LIBS     = @LIBS@
+LIBS    += @frameworks@
 
 REALTIME = @realtime@
 ifeq ($(REALTIME),yes)
@@ -59,12 +67,18 @@ DEFS    += -DRAWWAVE_PATH=\"$(RAWWAVES)\
 %.o : ../src/include/%.cpp
 	$(CC) $(CFLAGS) $(DEFS) -c $(<) -o $(OBJECT_PATH)/$@
 
-all : $(LIBRARY)
+all : $(LIBRARY) $(SHAREDLIB).$(RELEASE)
 
 $(LIBRARY) : $(OBJECTS)
-	/bin/rm -f $(LIBRARY)
+	$(RM) -f $(LIBRARY)
 	$(AR) $(LIBRARY) $(OBJECT_PATH)/*.o
 
+$(SHAREDLIB).$(RELEASE) : $(OBJECTS)
+	$(RM) -f $(@) $(SHAREDLIB).$(MAJOR) $(SHAREDLIB)
+	$(CC) -fPIC -shared -Wl,-soname,$(SHAREDLIB).$(MAJOR) -o $(@) $(OBJECT_PATH)/*.o $(LIBS)
+	$(LN) -s $(SHAREDLIB).$(RELEASE) $(SHAREDLIB).$(MAJOR)
+	$(LN) -s $(SHAREDLIB).$(RELEASE) $(SHAREDLIB)
+
 $(OBJECTS) : Stk.h
 
 clean : 