configure: Copy mmacosx-version-min option from CFLAGS to WINEPRELOADER_LDFLAGS.

Ken Thomases ken at codeweavers.com
Thu Nov 7 10:12:57 CST 2019


On Nov 7, 2019, at 9:22 AM, Piotr Caban <piotr at codeweavers.com> wrote:
> 
> We fail to link preloader when CFLAGS="-mmacosx-version-min=10.7" (because configure check also includes CFLAGS).

To make sure I understand: the problem is that, when CFLAGS already contains "-mmacosx-version-min=10.7", the WINE_TRY_CFLAGS() just above doesn't detect that the preloader needs that flag for linking and it's not added to WINEPRELOADER_LDFLAGS, right?

That suggests that WINE_TRY_CFLAGS() isn't the right macro to use for those checks.  We'd want a hypothetical WINE_TRY_LDFLAGS().  Or, perhaps, it's enough to temporarily clear CFLAGS around those checks.

-Ken




More information about the wine-devel mailing list