I configured gcc with "--enable-shared --disable-static". I though it 
might respect the request and utilize it during the build, apparently
it will not.

# gcc/xcc -v
Using built-in specs.
Target: i386-pc-solaris2.11
Configured with: ../gcc_trunk/configure --build=i386-pc-solaris2.11
--target=i386-pc-solaris2.11
--enable-languages=ada,c,c++,fortran,java,objc,obj-c++ --enable-shared
--disable-static --enable-multilib --enable-decimal-float
--with-long-double-128 --with-included-gettext --enable-stage1-checking
--enable-checking=release --with-tune=k8 --with-cpu=k8 --with-arch=k8
--with-gnu-as --with-as=/usr/local/bin/as --without-gnu-ld
--with-ld=/usr/bin/ld --with-gmp=/usr/local --with-mpfr=/usr/local
--without-ppl
Thread model: posix
gcc version 4.4.0 20090212 (experimental) [trunk revision 144128] (GCC) 


# gmake
...
mkdir -p ada/bldtools/sinfo
rm -f ada/bldtools/sinfo/sinfo.ads ada/bldtools/sinfo/xsinfo.adb
cp -p ../../gcc_trunk/gcc/ada/sinfo.ads ../../gcc_trunk/gcc/ada/xsinfo.adb
ada/bldtools/sinfo
(cd ada/bldtools/sinfo && gnatmake -q xsinfo && ./xsinfo ../../sinfo.h )
mkdir -p ada/bldtools/einfo
rm -f ada/bldtools/einfo/einfo.ads ada/bldtools/einfo/einfo.adb
ada/bldtools/einfo/xeinfo.adb
cp -p ../../gcc_trunk/gcc/ada/einfo.ads ../../gcc_trunk/gcc/ada/einfo.adb
../../gcc_trunk/gcc/ada/xeinfo.adb ada/bldtools/einfo
...
gcc -c  -g -fkeep-inline-functions -DIN_GCC   -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wcast-qual   -fno-common 
-DHAVE_CONFIG_H -I. -Iada -I../../gcc_trunk/gcc -I../../gcc_trunk/gcc/ada
-I../../gcc_trunk/gcc/../include -I./../intl
-I../../gcc_trunk/gcc/../libcpp/include -I/usr/local/include
-I/usr/local/include -I../../gcc_trunk/gcc/../libdecnumber
-I../../gcc_trunk/gcc/../libdecnumber/dpd -I../libdecnumber   
../../gcc_trunk/gcc/ada/env.c -o ada/env.o
gcc -static-libgcc  -o gnat1 ada/b_gnat1.o ada/adadecode.o ada/adaint.o ...
...


_IF_ I had configured gcc with "--enable-shared" and not mentioned 
"--disable-static" (and there were some overriding critical reason
why we would desire to mix the two) then I might accept this but
since I made a specific request for ONLY 'shared' I though it best
that it would build as I had directed.

On Solaris shared (only) is the default for all but the root shell.

Rob


-- 
           Summary: Configury does not respect "--enable-shared --disable-
                    static" directions
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rob1weld at aol dot com
 GCC build triplet: i386-pc-solaris2.11
  GCC host triplet: i386-pc-solaris2.11
GCC target triplet: i386-pc-solaris2.11


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39174

Reply via email to