Il 17/01/2013 21:05, minux ha scritto:
>> >
>> > I think gcc should try and build and run a gmp program and fail to 
>> > configure if the binary can't also run.  This prevents configuring and 
>> > building on such a system.  The gcc directions for building gmp and 
>> > friends should say that they must be configured and built with 
>> > --disable-shared --enable-static if the user doesn't have the installed 
>> > lib directory in their environment.
> any opinions on this? this is very easy to implement with AC_TRY_RUN and
> at least it will make the problem turn up early instead of when it's about to
> configure libgcc (with the confusing error "gcc not able to compile").
> of course, i will exclude the case when we're cross compiling gcc.

It's not confusing, it's right.  gcc is not able to compile indeed.

> I'm happy to leave the problem of setting -rpath to pkgsrc maintainers
> as I just want to do a full gcc bootstrap to test another libgcc patch.

I think it is user error.  If your libraries are not in the right place,
either you rely on .la files and force everyone to use libtool (not a
good idea), or you put the paths in LD_LIBRARY_PATH/LD_RUN_PATH, or you
add flags manually to the configure line.

Paolo

Reply via email to