[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: BUILD Rules.mk
From: |
dev123 |
Subject: |
Re: BUILD Rules.mk |
Date: |
Thu, 4 Jun 2009 17:45:52 -0700 (PDT) |
Writing a wrapper is more involved than I would like to get, but it is an
option.
I tried your second suggestion and I still get the following error in my
config.log (same as before):
/opt/eldk/usr/bin/mips-linux-ld: crt1.o: No such file: No such file or
directory
I double checked my command line linking and this works:
/opt/eldk/usr/bin/mips-linux-ld -L$CROSS_BASE/libs/lib/ -EB -nostdlib
--whole-archive --emit-relocs main.oo $CROSS_BASE/libs/crt0.o
-T$CROSS_BASE/build/linker.lds --start-group -lcrt0 -lstdc++ -lc--end-group
-o program
So why does autoconf think that mips-linux-ld needs crt1.o (I am not
familiar with crt objects)?
Thanks for your help,
-Al
Ralf Wildenhues wrote:
>
> * dev123 wrote on Wed, Jun 03, 2009 at 03:57:21AM CEST:
>> Ralf Wildenhues wrote:
>> > * address@hidden wrote on Mon, Jun 01, 2009 at 04:14:54AM CEST:
>> >>
>> >> According to config.log the cross compiler is found, so I think that
>> >> this is a linker problem.
>> >
>> > If you've already found the log file and the error message, why not
>> post
>> > it?
>> >
>> >> I know that the build/Rules.mk contains the linking rules but I do not
>> >> know how to include them in the configure.
>> >
>> > That's not easily possible. What does that file contain, can you post
>> > it?
>
>> I have uploaded both config.log and Rules.mk file.
>
> I think your easiest bet by far would be to write a wrapper script for
> the compiler, so that it provides the linker with the needed options
> when linking is done. Actually, this is exactly what GCC does (but it
> has its spec language rather than using shell) when invoking the linker
> from the compiler driver.
>
> Alternatively, you can probably get things to work more or less with
> something like this (untested):
>
> CROSS_BASE=...
> export CROSS_BASE
> ./configure LIBS="-L$CROSS_BASE/libs/lib/ -Wl,-EB -Wl,-nostdlib \
> -Wl,--whole-archive \
> $CROSS_BASE/libs/crt0.o \
> $CROSS_BASE/libs/crt0-qemu-debug.o \
> -T$CROSS_BASE/build/linker-qemu.lds \
> -Wl,--start-group,-lcrt0,-lc,-ldebug,--end-group"
>
> Hope that helps.
>
> Cheers,
> Ralf
> _______________________________________________
> Autoconf mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/autoconf
>
>
--
View this message in context:
http://www.nabble.com/BUILD-Rules.mk-tp23809803p23880378.html
Sent from the Gnu - Autoconf - General mailing list archive at Nabble.com.