[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to NOT include ($CFLAGS) in LINK?
From: |
Ralf Corsepius |
Subject: |
Re: How to NOT include ($CFLAGS) in LINK? |
Date: |
Fri, 01 Mar 2013 19:20:16 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130219 Thunderbird/17.0.3 |
On 03/01/2013 09:25 AM, Vania Joloboff wrote:
We have exactly the same problem
We want to compile code with CFLAGS = -march=armv5t -mthumb
-mthumb-interwork
but we do not want to link with these options because they actually produce
a different executable that we do not want
We want to have only AM_LDFLAGS and LDFLAGS when linking, not CFLAGS
This means, your toolchain is broken or your CFLAGS are wrong.
What do we do ?
Likely something CFLAGS=-Wl,<whatever> or similar could work.
Ralf