mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-01-07 17:52:34 +01:00
90b7f3aeba
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.
26 lines
404 B
Bash
Executable File
26 lines
404 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
run()
|
|
{
|
|
echo "$@"
|
|
"$@"
|
|
}
|
|
|
|
incdir="${top_srcdir}/include"
|
|
|
|
for inc in $(cd $incdir; find -name '*.h' | sort | cut -c3-); do
|
|
cat >headers-system-gen.c <<SOURCE
|
|
#include <$inc>
|
|
int main() { return 0; }
|
|
SOURCE
|
|
|
|
echo "testing header $inc"
|
|
run $CC -isystem "$incdir" $CPPFLAGS headers-system-gen.c -o headers-system
|
|
echo
|
|
|
|
rm -f headers-system
|
|
rm -f headers-system-gen.*
|
|
done
|