This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

why is libgcc_s.so.1 not executable?


I just realized that the installation of libgcc_s.so.1 in "make install"
is done like this
(builfing gcc-4.0.3 on Solaris 8 / Sparc):

/bin/sh ../../gcc-4.0.3/gcc/../mkinstalldirs /tmp2/gcc_4.0/lib/sparcv9;
ginstall -c -m 644 sparcv9/libgcc_s.so.1
/tmp2/gcc_4.0/lib/sparcv9/libgcc_s.so.1; rm -f
/tmp2/gcc_4.0/lib/sparcv9/libgcc_s.so; ln -s libgcc_s.so.1
/tmp2/gcc_4.0/lib/sparcv9/libgcc_s.so

There is explicitely mode 644 used - in contrast to all other libs
(libstdc++.so*, libgfortran.so*),
which are installed with 755 permissions. As a consequence, executables
that are linked with
libgcc_s.so.1 are not able to load it, even if the RUNPATH
(-R/path/to/libgcc) or 
LD_LIBRARY_PATH are defined correctly.
What is the reason of not making libgcc_s.so.1 executable, or is this a
bug?

Thanks,

Marek


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]