glibcLocales: use substituteInPlace for Makefile fix

That way we'll notice if the code changes to examine if this either
needs to be updated or removed.
This commit is contained in:
Maximilian Bosch
2025-10-05 13:07:29 +02:00
parent e4a0c034c3
commit bbe152dcfe
+2 -1
View File
@@ -54,7 +54,8 @@
echo 'C.UTF-8/UTF-8 \' >> ../glibc-2*/localedata/SUPPORTED
# Hack to allow building of the locales (needed since glibc-2.12)
sed -i -e 's,^$(rtld-prefix) $(common-objpfx)locale/localedef,localedef $(LOCALEDEF_FLAGS),' ../glibc-2*/localedata/Makefile
substituteInPlace ../glibc-2*/localedata/Makefile \
--replace-fail '$(rtld-prefix) $(common-objpfx)locale/localedef' 'localedef $(LOCALEDEF_FLAGS)'
''
+ lib.optionalString (!allLocales) ''
# Check that all locales to be built are supported