On Thursday 24 May 2001 12:29, you wrote:
> Hi Havard --
>
> You need to link in the libgcc.a which is located at:
>
> /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/libgcc.a
>
GCC can give the path to the libgcc.a with the print-file-name option:
[joel]: gcc -print-file-name=libgcc.a
/usr/lib/gcc-lib/i586-mandrake-linux/2.96/libgcc.a
So you can add a call to GCC at link time in your makefile:
$(LD) -r -o module_linked.o module.o `$(CC) -print-file-name=libgcc.a`
Joel
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/