diff --git a/configure b/configure
index 7e80f9a6c1b299e7a6d7962dff8914e5003121c4..f5a9a2690f38a85f3f7c4bccceef305b3fd5d9e5 100755
--- a/configure
+++ b/configure
@@ -3591,8 +3591,7 @@ case $target_os in
         enable section_data_rel_ro
         SLIB_INSTALL_NAME='$(SLIBNAME)'
         SLIB_INSTALL_LINKS=
-        # soname not set on purpose
-        SHFLAGS=-shared
+        SHFLAGS='-shared -Wl,-soname,$(SLIBNAME)'
         ;;
     haiku)
         prefix_default="/boot/common"