Nathan Gass | 22 Apr 2012 15:29
Picon

mac osx

Hello List

Quite new to luakit but hoping to use it a lot in the near future.

To build luakit on Mac OSX (Lion + XCode4) I had to do the following changes (in https://github.com/xabbu42/luakit/tree/macosx):

1. Add a implementation of clock_gettime
2. Remove --export-dynamic from LDFLAGS

In both cases the actual patch is probably not the right thing. If microsecond precision is enough, the
simplest solution to clock_gettime would be to just use the more portable gettimeofday. Anyway, the
current solution is from
http://stackoverflow.com/questions/5167269/clock-gettime-alternative-in-mac-os-x and
probably quite a bit slower.

The LDFLAGS patch does no longer respect the LDFLAGS set in the environment, which imho is wrong.

Appreciate any input and can make pull request as soon as this is mergable.

Greetings
Nathan Gass  
Mason Larobina | 25 Apr 2012 07:26
Picon
Gravatar

Re: mac osx

On 22 April 2012 21:29, Nathan Gass <xabbu <at> trizeps.ch> wrote:
> Hello List
>
> Quite new to luakit but hoping to use it a lot in the near future.
>
> To build luakit on Mac OSX (Lion + XCode4) I had to do the following changes (in https://github.com/xabbu42/luakit/tree/macosx):
>
> 1. Add a implementation of clock_gettime
> 2. Remove --export-dynamic from LDFLAGS
>
> In both cases the actual patch is probably not the right thing. If microsecond precision is enough, the
simplest solution to clock_gettime would be to just use the more portable gettimeofday. Anyway, the
current solution is from
http://stackoverflow.com/questions/5167269/clock-gettime-alternative-in-mac-os-x and
probably quite a bit slower.
>
> The LDFLAGS patch does no longer respect the LDFLAGS set in the environment, which imho is wrong.
>
> Appreciate any input and can make pull request as soon as this is mergable.
>
> Greetings
> Nathan Gass

Hey Nathan,

The commit (f3a2dbe) which added the --export-dynamic linker option
mentions that luakit crashes when trying to load shared lua libraries
(I.e. lfs.so) on some systems. Are you able to determine if this is a
problem on OSX? It doesn't appear to be a problem on my system anymore
(I did author the patch a year ago, hard to remember exactly what was
(Continue reading)

Nathan Gass | 26 Apr 2012 18:59
Picon

Re: mac osx


On 25.04.2012, at 07:26, Mason Larobina wrote:

> On 22 April 2012 21:29, Nathan Gass <xabbu <at> trizeps.ch> wrote:
>> Hello List
>> 
>> Quite new to luakit but hoping to use it a lot in the near future.
>> 
>> To build luakit on Mac OSX (Lion + XCode4) I had to do the following changes (in https://github.com/xabbu42/luakit/tree/macosx):
>> 
>> 1. Add a implementation of clock_gettime
>> 2. Remove --export-dynamic from LDFLAGS
>> 
>> In both cases the actual patch is probably not the right thing. If microsecond precision is enough, the
simplest solution to clock_gettime would be to just use the more portable gettimeofday. Anyway, the
current solution is from
http://stackoverflow.com/questions/5167269/clock-gettime-alternative-in-mac-os-x and
probably quite a bit slower.
>> 
>> The LDFLAGS patch does no longer respect the LDFLAGS set in the environment, which imho is wrong.
>> 
>> Appreciate any input and can make pull request as soon as this is mergable.
>> 
>> Greetings
>> Nathan Gass
> 
> Hey Nathan,
> 
> The commit (f3a2dbe) which added the --export-dynamic linker option
> mentions that luakit crashes when trying to load shared lua libraries
(Continue reading)

Nathan Gass | 9 Sep 2012 14:28
Picon

Re: mac osx


On 26.04.2012, at 18:59, Nathan Gass wrote:

> 
> On 25.04.2012, at 07:26, Mason Larobina wrote:
> 
>> On 22 April 2012 21:29, Nathan Gass <xabbu <at> trizeps.ch> wrote:
>>> Hello List
>>> 
>>> Quite new to luakit but hoping to use it a lot in the near future.
>>> 
>>> To build luakit on Mac OSX (Lion + XCode4) I had to do the following changes (in https://github.com/xabbu42/luakit/tree/macosx):
>>> 
>>> 1. Add a implementation of clock_gettime
>>> 2. Remove --export-dynamic from LDFLAGS
>>> 
>>> In both cases the actual patch is probably not the right thing. If microsecond precision is enough, the
simplest solution to clock_gettime would be to just use the more portable gettimeofday. Anyway, the
current solution is from
http://stackoverflow.com/questions/5167269/clock-gettime-alternative-in-mac-os-x and
probably quite a bit slower.
>>> 
>>> The LDFLAGS patch does no longer respect the LDFLAGS set in the environment, which imho is wrong.
>>> 
>>> Appreciate any input and can make pull request as soon as this is mergable.
>>> 
>>> Greetings
>>> Nathan Gass
>> 
>> Hey Nathan,
(Continue reading)


Gmane