--- a/src/scripts/charmc	2026-08-20 12:06:09.410852033 +0200
+++ b/src/scripts/charmc	2026-08-20 12:08:41.675240108 +0200
@@ -1492,7 +1492,7 @@
 	then
  	  soCmd="$CMK_LDXX -o $OBJECT $OPTS_LD $OPTS_LDRO $OBJECTFILES $PRE_LIBRARIES $POST_LIBRARIES $CMK_LD_SHARED_LIBS"
 	else
-	  soCmd="$CMK_LD -o $OBJECT $OPTS_LD $OPTS_LDRO $OBJECTFILES $PRE_LIBRARIES $POST_LIBRARIES $CMK_LD_SHARED_LIBS"
+	  soCmd="$CMK_LD -o $OBJECT -Wl,-soname,$(basename $OBJECT) $OPTS_LD $OPTS_LDRO $OBJECTFILES $PRE_LIBRARIES $POST_LIBRARIES $CMK_LD_SHARED_LIBS"
 	fi
 	DoNoErrCheck $soCmd
 	Do_res=$?
