blob: 46f02c3b5b096f0c0b4e443adb80a38399689779 [file] [log] [blame]
<div class="wiki-content maincontent"><p>On Solaris 10 the libstdc++.la file is empty which causes the build to fail. In order to fix this you must fill in the libstdc++.la file with the correct information. There are two versions, one for 32 bit and one for 64 bit. The following listings show the correct contents of these files respectively. </p>
<p>From <a shape="rect" href="http://forum.java.sun.com/thread.jspa?threadID=5073150">Sun Forums</a></p>
<p>/usr/sfw/lib/libstdc++.la</p>
<structured-macro ac:macro-id="40d128d2-ef20-4e2d-9b0e-d8dd6753686c" ac:name="noformat" ac:schema-version="1"><plain-text-body>
# libstdc++.la - a libtool library file
# Generated by ltmain.sh - GNU libtool 1.4a-GCC3.0 (1.641.2.256 2001/05/28 20:09:07 with GCC-local changes)
#
# Please DO NOT delete this file!
# It is necessary for linking the library.
# The name that we can dlopen(3).
dlname='libstdc++.so.6'
# Names of this library.
library_names='libstdc++.so.6.0.3 libstdc++.so.6 libstdc++.so'
# The name of the static archive.
old_library='libstdc++.a'
# Libraries that this one depends upon.
dependency_libs='-lc -lm -L/usr/sfw/lib -lgcc_s'
# Version information for libstdc++.
current=6
age=0
revision=3
# Is this an already installed library?
installed=yes
# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''
# Directory that this library needs to be installed in:
libdir='/usr/sfw/lib'
</plain-text-body></structured-macro>
<p>/usr/sfw/lib/64/libstdc++.la</p>
<structured-macro ac:macro-id="1ba95c70-1934-4802-ade9-885ed7966585" ac:name="noformat" ac:schema-version="1"><plain-text-body>
# libstdc++.la - a libtool library file
# Generated by ltmain.sh - GNU libtool 1.4a-GCC3.0 (1.641.2.256 2001/05/28 20:09:07 with GCC-local changes)
#
# Please DO NOT delete this file!
# It is necessary for linking the library.
# The name that we can dlopen(3).
dlname='libstdc++.so.6'
# Names of this library.
library_names='libstdc++.so.6.0.3 libstdc++.so.6 libstdc++.so'
# The name of the static archive.
old_library='libstdc++.a'
# Libraries that this one depends upon.
dependency_libs='-L/lib/64 -lc -lm -L/usr/sfw/lib/64 -lgcc_s'
# Version information for libstdc++.
current=6
age=0
revision=3
# Is this an already installed library?
installed=yes
# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''
# Directory that this library needs to be installed in:
libdir='/usr/sfw/lib/64'
</plain-text-body></structured-macro>
<p>Note that this doesn't seem to get us all the way. For some reason the shared library dependencies can't seem to all be resolved so you must build only static libraries. This can be accomplished by passing the following to the configure script.</p>
<structured-macro ac:macro-id="fc32c26c-e2fe-4eaa-8bf5-365e451ec2dd" ac:name="noformat" ac:schema-version="1"><plain-text-body>
./configure --enable-shared=no
</plain-text-body></structured-macro> </div>