libstdc++: Add support for '?' in linker script globs
authorJonathan Wakely <jwakely@redhat.com>
Mon, 13 Dec 2021 13:09:57 +0000 (13:09 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 13 Dec 2021 13:14:51 +0000 (13:14 +0000)
commit7bf710b5116e6186204edd6a0168202fd8ef0389
treeede938bd171b2fe3a0c9858fdcd7ac070b271969
parent494ebfa7c9aacaeb6ec1fccc47a0e49f31eb2bb8
libstdc++: Add support for '?' in linker script globs

The scripts/make_exports.pl script used for darwin only replaces '*'
wildcards in globs, it doesn't handle '?'. This means the recent changes
to std::__timepunct exports broke darwin.

Rather than use mangled names in the linker script, this adds support
for '?' to the perl script.

This also removes some unnecessary escaping of the replacement strings
in s// substitutions.

libstdc++-v3/ChangeLog:

* scripts/make_exports.pl: Replace '?' with '.' when turning
a glob into a regex.
libstdc++-v3/scripts/make_exports.pl