Re: Missing program_name on Darwin

2016-05-31 Thread Paul Eggert
On 05/31/2016 05:56 AM, Daniel Peebles wrote: What would it take to get a patch merged into gnulib for this issue? The last time I looked at it, it didn't appear that it would work on platforms other than OS X and glibc, and it wasn't clear that it would work even on glibc when some other mod

Re: Missing program_name on Darwin

2016-05-31 Thread Daniel Peebles
What would it take to get a patch merged into gnulib for this issue? Margaret's patch didn't gain much traction because it didn't solve the problem for non-darwin platforms, but at the same time we also acknowledge that there's no platform-agnostic way to do this. To me, it would be better to accep

Re: Missing program_name on Darwin

2016-05-31 Thread Richard W.M. Jones
On Tue, May 31, 2016 at 12:37:56PM +, Tobias Pflug wrote: > seems like my email did not reach the mailing list since I am not > subscribed to it. I actually just tried the patch but at least for > me it does not work. Compilation will still fail: > > Undefined symbols for architecture x86_64:

Re: Missing program_name on Darwin

2016-05-31 Thread Richard W.M. Jones
On Tue, May 31, 2016 at 09:36:40AM +, Tobias Pflug wrote: > Hi, > > quite some time ago there already was a discussion about the missing > program_name symbol on Darwin and Richard proposed a patch [1] that would > #define program_name as (((char **)*_NSGetArgv())[0]) but sadly the > discus