--- ./Modules/ld_so_aix.in_orig 2026-10-22 03:12:21.751607064 -0400 +++ ./Modules/ld_so_aix.in 2026-10-22 03:15:08.848748655 -0400 @@ -118,6 +118,7 @@ ;; -bE:* | -Wl,-bE:*) expfile=`echo $1 | sed -e "s/-Wl,//" -e "s/-bE://"` + custom_exp="true" ;; *.o | *.a) objs="$objs $1" @@ -188,7 +189,9 @@ # Export list generation. #echo $makexp $expfile "$objfile" $objs -$makexp $expfile "$objfile" $objs +if test -z "$custom_exp"; then + $makexp $expfile "$objfile" $objs +fi # Perform the link. #echo $CC $CCOPT $CCARGS @@ -197,6 +200,8 @@ # Delete the module's export list file. # Comment this line if you need it. -rm -f $expfile +if test -z "$custom_exp"; then + rm -f $expfile +fi exit $retval