kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #09365
Re: Python scripting cmake build macros.
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
> 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> 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?
>>
>>
>
>
Follow ups
References