mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-01-07 09:48:12 +01:00
test: Do not use /dev/null as compiler output file
Some ld(1) implementations, such as the one on AIX, do not support using /dev/null as the output filename for the compiled object. Use an actual filename that we will then clean up.
This commit is contained in:
parent
426bf45278
commit
90b7f3aeba
@ -18,8 +18,9 @@ int main() { return 0; }
|
||||
SOURCE
|
||||
|
||||
echo "testing header $inc"
|
||||
run $CC -isystem "$incdir" $CPPFLAGS headers-overlay-gen.c -o /dev/null
|
||||
run $CC -isystem "$incdir" $CPPFLAGS headers-overlay-gen.c -o headers-overlay
|
||||
echo
|
||||
|
||||
rm -f headers-overlay
|
||||
rm -f headers-overlay-gen*
|
||||
done
|
||||
|
@ -17,8 +17,9 @@ int main() { return 0; }
|
||||
SOURCE
|
||||
|
||||
echo "testing header $inc"
|
||||
run $CC -isystem "$incdir" $CPPFLAGS headers-system-gen.c -o /dev/null
|
||||
run $CC -isystem "$incdir" $CPPFLAGS headers-system-gen.c -o headers-system
|
||||
echo
|
||||
|
||||
rm -f headers-system
|
||||
rm -f headers-system-gen.*
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user