On Nov 7, 2019, at 9:22 AM, Piotr Caban piotr@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