/usr/src/gcc-4.8/debian/runcheck.sh is in gcc-4.8-source 4.8.5-4ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | #! /bin/sh
mkdir -p build
abi=${CC##* }
base=build/runcheck$abi
cat >$base.c <<EOF
#include <stdio.h>
int main()
{
printf("$abi");
return 0;
}
EOF
if ${CC:-gcc} -o $base $base.c 2>/dev/null; then
if [ "$($base 2>&1)" = "$abi" ]; then
printf "%s" $abi > $base.out
printf "%s" $abi
fi
fi
|