--- src/pqe/Makefile	2009-04-02 00:54:32.000000000 +0200
+++ src/pqe/Makefile	2009-04-02 00:45:53.000000000 +0200
@@ -52,7 +52,17 @@
 ###
 # Flags for ld:
 ###
-LDFLAGS=-shared
+
+UNAME		:= $(shell uname)
+ifeq ($(UNAME), Darwin)
+LDFLAGS = -dynamiclib
+endif
+
+ifeq ($(UNAME), Linux)
+LDFLAGS = -shared
+endif
+
+
 
 
 all: depends $(OBJS)
