f



Checking for EMX gcc

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...
0
Ilya
11/28/2009 1:55:01 PM
comp.os.os2.programmer.misc 1326 articles. 0 followers. Post Follow

1 Replies
261 Views

Similar Articles

[PageSpeed] 29

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
Dave
11/28/2009 6:29:17 PM
Reply: