Re: [PATCH]cyclictest: CFLAGS to support static compiliation with ARM Crosscompiler

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jan 21, 2010 at 8:40 PM, John Kacur <jkacur@xxxxxxxxxx> wrote:
>
>
> On Thu, 21 Jan 2010, GeunSik Lim wrote:
>
>> On Thu, Jan 21, 2010 at 9:40 AM, John Kacur <jkacur@xxxxxxxxxx> wrote:
>> >
>> > Did you leave something out?
>> Not at all.
>> I summary, We have to  change  CFLAGS from "-lpthread -lrt" to "-lrt
>> -lpthread" to compile
>> rt-tests source successfully  for static linking with GCC based arm
>> cross compiler.
>>
>> This is testcase.
>> Fedora11#> git clone
>> git://git.kernel.org/pub/scm/linux/kernel/git/clrkwllms/rt-tests.git
>> Fedora11#> cd rt-tests
>> Fedora11#> vi Makefile ( for static linking)
>>   CFLAGS  += -O2 -static <--- Edit this line.
>> Fedora11#> make CC=arm-linux-eabi-gcc
>>    We will meet some errors like  "undefined reference to . . . . . .
>> " messages.
>
> Okay, I tested that change on normal x86_64 with the static flag, and it
> does seem to work, so I have no problem with your change.
Thank you for verification on X86 64bit.
For reference, I tested that change on X86 32bit with the "-static"option.
>
> Are you sure you need a -static link flag for embedded? I was talking to
> another arm developer who also cross compiles but doesn't need it.
Of course. In general, Most embedded developers use shared linking for
Embedded environment. But, Consider some case like Speedup and
independent binary for debugging. In this case, We need useful
"-static"option.
>
> Also, the reason I asked whether something was missing, is that the text
> to your patch contains "Subject: [PATCH 2/2] bugfix: Support static
> linking(-static) with"
>
> so I was wondering where Patch 1/2 was.
>
Sorry. I mistook.:)
Patch is just one.
> Thanks.
>



-- 
Regards,
GeunSik Lim ( Samsung Electronics )
Blog : http://blog.naver.com/invain/
e-Mail: geunsik.lim@xxxxxxxxxxx
           leemgs@xxxxxxxxx , leemgs1@xxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux