> On Dec 22, 2021, at 7:23 AM, Bruno Haible <br...@clisp.org> wrote:
>
> Ken Cunningham:
>> So that is why with the usual SDK usage on macOS systems, you don't
>> have to add the weak linking macros yourself, in most cases.
>
> Your proposed approach may work "in most cases", but not in this one.
>
> I said in the previous mail that I tried omitting the line
>
> extern int proc_pidinfo (int, int, uint64_t, void *, int)
> WEAK_IMPORT_ATTRIBUTE;
>
> and that it did not produce the appropriate code. Despite
> -DMAC_OS_X_VERSION_MAX_ALLOWED=1090 -DMAC_OS_X_VERSION_MIN_REQUIRED=1040
> it produced code that would *not* run on Mac OS X 10.4.
>
> Bruno
>
Sure, could be. You can’t just set those macros yourself, however:
> -DMAC_OS_X_VERSION_MAX_ALLOWED=1090 -DMAC_OS_X_VERSION_MIN_REQUIRED=1040
That will never work properly. It picks up those macros from the SDK itself,
and that comes with a whole lot of other parts that make it work.
This is not my proposal, though — this is the “Apple Way”.
Anyway, mighty generous of you to even consider supporting Tiger, if you ask me
;>
Ken