Index: src/Makefile
--- src/Makefile.orig
+++ src/Makefile
@@ -360,6 +360,10 @@ else
   ifeq (GNU,$(TARGET_SYS))
     TARGET_XLIBS+= -ldl
   endif
+  ifeq (OpenBSD,$(TARGET_SYS))
+    TARGET_XSHLDFLAGS= -shared -fPIC
+    TARGET_STRIP= @:
+  endif
 endif
 endif
 endif
@@ -621,10 +625,10 @@ endif
 endif
 endif
 
-Q= @
-E= @echo
-#Q=
-#E= @:
+#Q= @
+#E= @echo
+Q=
+E= @:
 
 ##############################################################################
 # Make targets.
