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

Checking for EMX gcc

0 views
Skip to first unread message

Ilya Zakharevich

unread,
Nov 28, 2009, 8:55:01 AM11/28/09
to
I'm trying to distinguish compilation which targets EMX libraries from
one which is for kLIBc. I see that

echo void foo(){} > x.c && gcc -c -Zomf -o x.obj x.c && grep -c _foo x.obj

returns 0 on EMX. Am I correct that it would return non-0 on kLIBc
targets?

Thanks,
Ilya

P.S. Please do not suggest looking for version of gcc. E.g., I'm
using 3.3.5 for compile with EMX C runtime...

Dave Yeo

unread,
Nov 28, 2009, 1:29:17 PM11/28/09
to
On 11/28/09 05:55 am, Ilya Zakharevich wrote:
> I'm trying to distinguish compilation which targets EMX libraries from
> one which is for kLIBc. I see that
>
> echo void foo(){}> x.c&& gcc -c -Zomf -o x.obj x.c&& grep -c _foo x.obj

>
> returns 0 on EMX. Am I correct that it would return non-0 on kLIBc
> targets?

Here with klibc it returns 1
Dave

0 new messages