[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] binutils 2.18 patch



On Sun, 2008-04-06 at 23:38 +0200, Vincent Rivière wrote:
> Alan Hourihane wrote:
> 
> >> Without applying your patch, I tried to cross-compile the binutils for 
> >> the MiNT host, using --enable-shared, and I got the following error very 
> >> early when building libiberty :
> >> ../../binutils-2.18-mint-20080228/libiberty/regex.c:1: error: -fpic is 
> >> not supported on this target
> > 
> > Right, and that's the problem. It needn't bail like that with the patch.
> 
> Ok, I begin to understand...
> 
> Without the patch, building the binutils with --enable-shared fails, 
> because shared libraries and PIC are not available on the MiNT target.
> 
> With the patch, the option --enable-shared can be used to build the 
> binutils, but that option is ignored because shared libraries are not 
> available on MiNT.
> 
> Am I right ?

Correct.

> If so, the obvious way to fix the problem would be to not use the 
> --enable-shared option when building the binutils...
> I'm probably still missing something...

No, you are not missing anything. But the patch is small and allows the
passing of --enable-shared. It follows other architectures and I don't
see any reason why it shouldn't be used.

> Note: The libtool.m4 file is part of the GNU libtool project, it is 
> copied into every project using it. The official source is here:
> http://cvs.savannah.gnu.org/viewvc/libtool/libltdl/m4/libtool.m4?root=libtool&view=markup
> That's where the changes should be finally committed.

Right.

Alan.