kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #09368
Re: Python scripting cmake build macros.
On 1/14/2013 9:10 AM, Miguel Angel Ajo Pelayo wrote:
> In my OSX system, if we add "-lrt" to linker, it will fail.
>
> So It should be keep, at least for my OSX version.
Thanks Miguel. Apparently on OSX gettimeofday() is being pulled in from
another library already defined in the link list.
>
>
>
>
> 2013/1/14 Wayne Stambaugh <stambaughw@xxxxxxxxxxx
> <mailto:stambaughw@xxxxxxxxxxx>>
>
> On 1/12/2013 8:02 PM, Miguel Angel Ajo Pelayo wrote:
> > I use all three names without much care, Mac OSX, OSX, Mac OS,
> but I think you're right.
> >
> > I checked, and it's implemented using gettimeofday :-)
> >
> > ajo$ otool -t -I -v -V getrunningmicrosecs.cpp.o
> > getrunningmicrosecs.cpp.o:
> > (__TEXT,__text) section
> > __Z19GetRunningMicroSecsv:
> > 0000000000000000 pushq %rbp
> > 0000000000000001 movq %rsp,%rbp
> > 0000000000000004 subq $0x20,%rsp
> > 0000000000000008 leaq 0xf0(%rbp),%rdi
> > 000000000000000c movq $__Z19GetRunningMicroSecsv,%rsi
> > 0000000000000016 callq _gettimeofday
> <-----------------------------
> > 000000000000001b imulq $0x000f4240,0xf0(%rbp),%rsi
> > 0000000000000023 movslq 0xf8(%rbp),%rdi
> > 0000000000000027 addq %rdi,%rsi
> > 000000000000002a movl %esi,%ecx
> > 000000000000002c movl %eax,0xec(%rbp)
> > 000000000000002f movl %ecx,%eax
> > 0000000000000031 addq $0x20,%rsp
> > 0000000000000035 popq %rbp
> > 0000000000000036 ret
> >
> > Miguel Angel Ajo
> > http://www.nbee.es
> > +34911407752 <tel:%2B34911407752>
> > skype: ajoajoajo
>
> I guess this means that "NOT APPLE" should be removed from the
> conditional check to add "rt" to "PCBNEW_EXTRA_LIBS". Can someone with
> OSX please confirm this?
>
> >
> > On 13/01/2013, at 01:41, Dick Hollenbeck <dick@xxxxxxxxxxx
> <mailto:dick@xxxxxxxxxxx>> wrote:
> >
> >> On 01/12/2013 06:05 PM, Miguel Angel Ajo Pelayo wrote:
> >>> Where is it included exactly?, after pulling head now it fails
> on MacOS:
> >>>
> >>> Linking CXX shared module _pcbnew.so
> >>> ld: library not found for -lrt
> >>
> >>
> >> No -lrt on MacOS?
> >>
> >> I wonder how common/GetRunningMicroSecs() gets implemented on MacOS?
> >>
> >> gettimeofday( &tv, 0 ); ?
> >>
> >> Besides, what is MacOS? I thought it was called OSX?
> >>
> >>
> >
> >
>
>
>
>
> --
>
> Miguel Angel Ajo Pelayo
> http://www.nbee.es
> +34 636 52 25 69
> skype: ajoajoajo
Follow ups
References