To have multiple versions of GCC installed, I usually build, on Cygwin,
configuring as:
prefix_dir_name="usr/local/gfortran"
prefix_dir="/${prefix_dir_name}"
dataroot_dir="${prefix_dir}/share"
eprefix_dir="${prefix_dir}"
sysconf_dir="${prefix_dir}/etc"
lib_dir="${eprefix_dir}/lib"
libexec_dir="${eprefix_dir}/lib"
man_dir="${dataroot_dir}/man"
info_dir="${dataroot_dir}/info"
${source_dir}/configure --prefix="${prefix_dir}" \
--exec-prefix="${eprefix_dir}" \
--sysconfdir="${sysconf_dir}" \
--libdir="${lib_dir}" \
--libexecdir="${libexec_dir}" \
--mandir="${man_dir}" \
--infodir="${info_dir}" \
--program-suffix="${suffix}" \
--enable-bootstrap \
--enable-checking=release \
--enable-decimal-float=bid \
--enable-languages=c,c++,fortran \
--enable-libgomp \
--enable-libssp \
--enable-nls \
--enable-threads=posix \
--enable-version-specific-runtime-libs \
--disable-fixed-point \
--disable-libmudflap \
--disable-shared \
--disable-sjlj-exceptions \
--disable-win32-registry \
--with-arch=i686 \
--with-dwarf2 \
--with-system-zlib \
--with-tune=generic \
--without-included-gettext \
--without-x
in which 'prefix' is /usr/local/gfortran and 'suffix' could be -4.3,
-4.4 or -4.5.
In any case, doing in this way, I have noticed that 'libiberty.a' is
installed in '/usr/local/gfortran/lib/',
$ ls -lrt /usr/local/gfortran/lib/
totale 204
-rwxr-x---+ 1 root Users 207326 Jul 23 11:54 libiberty.a
drwxrwx---+ 3 root Users 0 Jul 23 12:05 gcc
with
$ ls -lrt /usr/local/gfortran/lib/gcc/
totale 0
drwxrwx---+ 3 root Users 0 Jul 24 12:30 i686-pc-cygwin
$ ls -lrt /usr/local/gfortran/lib/gcc/i686-pc-cygwin/
totale 0
drwxrwx---+ 6 root Users 0 Jul 23 12:05 4.4.1
This mean it belongs to the last GCC installed (which overwrite the
previous)
Is there a way to send libiberty.a where go the other libs (i.e
/usr/local/gfortran/lib/gcc/i686-pc-cygwin/4.4.1/, for example)?
(I suspect there is some configuring option or someone of mine is wrong)
Thanks,
Angelo.