May be a bit over my head here with libtool:
richard@devzone:/opt/pkg/bin$ libtool --features
host: x86_64-sun-solaris2.11
enable shared libraries
enable static libraries
richard@devzone:/opt/pkg/bin$ grep '[,|}]text' libtool
archive_cmds="\$CC -shared \${wl}-z \${wl}text \${wl}-h \${wl}\$soname -o \$lib \$libobjs \$deplibs \$compiler_flags"
\$CC -shared \${wl}-z \${wl}text \${wl}-M \${wl}\$lib.exp \${wl}-h \${wl}\$soname -o \$lib \$libobjs \$deplibs \$compiler_flags~\$RM \$lib.exp"
archive_cmds="\$CC -shared \${wl}-z \${wl}text \${wl}-h \${wl}\$soname -o \$lib \$libobjs \$deplibs \$compiler_flags"
\$CC -shared \${wl}-z \${wl}text \${wl}-M \${wl}\$lib.exp \${wl}-h \${wl}\$soname -o \$lib \$libobjs \$deplibs \$compiler_flags~\$RM \$lib.exp"
archive_cmds="\$CC -shared \${wl}-z \${wl}text \${wl}-h \${wl}\$soname -o \$lib \$libobjs \$deplibs \$compiler_flags"
\$CC -shared \${wl}-z \${wl}text \${wl}-M \${wl}\$lib.exp \${wl}-h \${wl}\$soname -o \$lib \$libobjs \$deplibs \$compiler_flags~\$RM \$lib.exp"
Tried temporarily modifying directly in libtool these 'text' to 'textwarn', but the linker pukes saying it don't like both -z text and -z textwarn at the same time.
Tried a number of combinations in the makefile and even in the original configure for the solaris* parts (the first two) :
richard@devzone:~/src/pkgsrc/finance/gnucash/work.devzone/gnucash-2.4.11$ grep '[,|}]text' configure.orig
archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
no_undefined_flag='${wl}-z,text'
no_undefined_flag='${wl}-z,text'
no_undefined_flag_CXX='${wl}-z,text'
no_undefined_flag_CXX='${wl}-z,text'
but can't seem to make any music due to my poor knowledge of libtool interaction here. Guess will have to wait and see about this later when I have much more time...
thanks anyway.