initial import from Debian
version: 14.3.0-5 commit: bee30ab0fff2fd6af94c62376c8aa4221bb831e0
This commit is contained in:
23
debian/runcheck.sh
vendored
Normal file
23
debian/runcheck.sh
vendored
Normal file
@@ -0,0 +1,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
|
Reference in New Issue
Block a user