[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: XZ utils fails to build from source on hurd/x86



Hello,

Jonathan Nieder, le Mon 19 Oct 2009 16:09:22 -0500, a écrit :
> I am no expert in these things, but it looks as though the assembly
> code checks for Mach-O format with __MACH__, but Hurd, which uses ELF,
> defines that symbol to convey it uses the Mach microkernel. If this is
> right, what preprocessor symbol should be checked instead?

I have usually seen people using #if defined(__APPLE__) && defined(__MACH__)

> Unrelated, but while I have your attention I thought I should ask: the
> same files emit a .note.GNU-stack section for a non-executable stack
> only if __ELF__ and __linux__ are defined. Is there a better
> conditional to use to make that work more widely?

Mmm, I'd tend to think that if defined(__ELF__) && defined(__GLIBC__)
should be fine.

Samuel


Reply to: