Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Choose a different linker than ld

192 views
Skip to first unread message

breezeight

unread,
Dec 12, 2009, 10:37:16 AM12/12/09
to
Hi,
I need to force gcc to use a custom linker.
The problem rise from my toolchain. I'm using a mosync.com and I have
2 alternative build systems: cmake and autotools. With both I don't
how to set the linker. Cmake try to use gcc and finally gcc try to use
ld but it cannot find it.

So a solution could be a gcc option to set the linker. The linker is
called pipe-tool.exe.
Any Idea?

Thanks

Pascal J. Bourguignon

unread,
Dec 12, 2009, 10:54:27 AM12/12/09
to
breezeight <nicolab...@gmail.com> writes:

You could also avoid gcc calling the linker, with the -c option.
Then add the calls to pipe-tool.exe in your makefile as needed.

foo.o:foo.c
gcc -c -o foo.o foo.c
foo.exe:foo.o
pipe-tool.exe -o foo.exe foo.o

--
__Pascal Bourguignon__

0 new messages