mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-18 10:27:00 +02:00
We need to filter not only `-Wl,-O1`, but also other flags like `-Wl,-O2`, `-Wl,-Og`, `-Wl,-Os`, etc. Otherwise, SDK build would fail, for example, as its default `$LDFLAGS` includes `-Wl,-O2`. We need to manually strip only the optimization element of comma-separated flags, e.g. from `-Wl,-O1,-s` to `-Wl,-s`. To support multiple characters that can follow `-O`, e.g. `-Ofast`, we should use regexp like `[[:alnum:]]*`. |
||
---|---|---|
.. | ||
src/third_party/coreos-overlay |