src/world/tc-adjust/specs-adjust.sh

6 lines
221 B
Bash
Executable File

#!/bin/sh
gcc -dumpspecs | sed -e 's@/toolchain@@g' \
-e '/\*startfile_prefix_spec:/{n;s@.*@/usr/lib/ @}' \
-e '/\*cpp:/{n;s@$@ -isystem /usr/include@}' > \
$(dirname $(gcc --print-libgcc-file-name))/specs