When trying to build log4cpp3.5rc3 on Solaris 8 with CC
5.6 in 64 bits mode, compilation works OK but the link
phase fails because specific option passed through
CXXFLAGS and LDFLAGS are not passed to the link command
which is hard-coded in configure :
...
solaris*)
case $cc_basename in
CC*)
# Sun C++ 4.2, 5.x and Centerline C++
no_undefined_flag_CXX=' -zdefs'
archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib
-h$soname -o $lib $predep_objects $libobjs $deplibs
$postdep_objects $compiler_flags'
archive_expsym_cmds_CXX='$echo "{ global:" >
$lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/"
>> $lib.exp~$echo "local: *; };" >> $lib.exp~
$CC -G${allow_undefined_flag} -nolib ${wl}-M
${wl}$lib.exp -h$soname -o $lib $predep_objects
$libobjs $deplibs $postdep_objects $compiler_flags~$rm
$lib.exp'
Ideally, the options specified in LDFLAGS should also
appear in the archive command.