* Canadian cross of GDB with Static build set?
@ 2013-09-24 11:19 Per Arnold Blaasmo
2013-11-15 20:29 ` Yann E. MORIN
0 siblings, 1 reply; 2+ messages in thread
From: Per Arnold Blaasmo @ 2013-09-24 11:19 UTC (permalink / raw)
To: crossgcc
Hi,
I have been experimenting with som canadian builds and trying to build GDB.
After adding builds of ncurses and expat on the host-platform I get
error when doing a static build (CT_GDB_CROSS_STATIC=y).
In the script file 200-gdb.sh I find this code:
if [ "${CT_GDB_CROSS}" = "y" ]; then
:
:
if [ "${CT_GDB_CROSS_STATIC}" = "y" ]; then
CC_for_gdb="gcc -static"
LD_for_gdb="ld -static"
fi
:
:
fi
But this finds the 'gcc' installed natively on the build-platform, and
that gives errors.
If I change this to be '${CT_HOST_PREFIX}gcc -static' and
'${CT_HOST_PREFIX}ld -static' it seems to work OK.
So, should these lines be changed to:
if [ "${CT_GDB_CROSS_STATIC}" = "y" ]; then
CC_for_gdb="${CT_HOST_PREFIX}gcc -static"
LD_for_gdb="${CT_HOST_PREFIX}ld -static -static"
fi
or somthing along these lines?
Regards
Per A.
--
For unsubscribe information see http://sourceware.org/lists.html#faq
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Canadian cross of GDB with Static build set?
2013-09-24 11:19 Canadian cross of GDB with Static build set? Per Arnold Blaasmo
@ 2013-11-15 20:29 ` Yann E. MORIN
0 siblings, 0 replies; 2+ messages in thread
From: Yann E. MORIN @ 2013-11-15 20:29 UTC (permalink / raw)
To: Per Arnold Blaasmo; +Cc: crossgcc
Per, All,
On 2013-09-24 13:19 +0200, Per Arnold Blaasmo spake thusly:
> I have been experimenting with som canadian builds and trying to build GDB.
>
> After adding builds of ncurses and expat on the host-platform I get
> error when doing a static build (CT_GDB_CROSS_STATIC=y).
> In the script file 200-gdb.sh I find this code:
>
> if [ "${CT_GDB_CROSS}" = "y" ]; then
> :
> :
> if [ "${CT_GDB_CROSS_STATIC}" = "y" ]; then
> CC_for_gdb="gcc -static"
> LD_for_gdb="ld -static"
> fi
> :
> :
> fi
>
> But this finds the 'gcc' installed natively on the build-platform, and
> that gives errors.
> If I change this to be '${CT_HOST_PREFIX}gcc -static' and
> '${CT_HOST_PREFIX}ld -static' it seems to work OK.
>
> So, should these lines be changed to:
> if [ "${CT_GDB_CROSS_STATIC}" = "y" ]; then
> CC_for_gdb="${CT_HOST_PREFIX}gcc -static"
> LD_for_gdb="${CT_HOST_PREFIX}ld -static -static"
> fi
>
> or somthing along these lines?
Well, looks like you hit the nail right on the head!
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
--
For unsubscribe information see http://sourceware.org/lists.html#faq
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-11-15 20:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-24 11:19 Canadian cross of GDB with Static build set? Per Arnold Blaasmo
2013-11-15 20:29 ` Yann E. MORIN
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).