--- a/meson.build +++ b/meson.build @@ -197,6 +197,12 @@ endif ################################################################## # Get an appropriate 4-digit year modifier for strftime ################################################################## +if meson.is_cross_build() and not meson.has_exe_wrapper() + year_modifier = meson.get_cross_property('strftime_year_modifier', '') + if year_modifier == '' + error('Please assign an appropriate value for strftime_year_modifier in the [properties] section of your crossfile') + endif +else result = cc.run(''' #define _TIME_BITS 64 #define _GNU_SOURCE @@ -228,6 +234,7 @@ if not result.compiled() or result.retur else year_modifier = result.stdout() endif +endif ################################################################## # Check for libtracker-data and libtracker-fts: Unicode support