There's also now more than a single option being special cased for darwin. If we didn't special case these options they would still end up on the link line and the binaries produced would just segfault.
I'm going to plug #17874 here as well, because adding
-fatal-warnings to our AX_CHECK_LINK_FLAG calls would
mostly prevent this sort of option mangling from happening.
An example of the warning behaviour:
echo "int main() {}" | g++ -x c++ -std=c++11 -Wl,-dead_strip -
/usr/bin/ld: warning: cannot find entry symbol ad_strip; defaulting to 0000000000001040
nm -C a.out
0000000000001000 t _init
0000000000001040 T _start
U ad_strip