mirror of
https://github.com/containers/skopeo.git
synced 2025-04-27 02:51:02 +00:00
Until now `cc' was hard-coded as the only compiler used. Supporting selecting the compiler and preprocessor to be used via environment variables makes life easier for distributors, so this commit mimics how podman does it in its hack/* scripts. Signed-off-by: Tomas Volf <~@wolfsden.cz>
8 lines
167 B
Bash
Executable File
8 lines
167 B
Bash
Executable File
#!/usr/bin/env bash
|
|
${CPP:-${CC:-cc} -E} ${CPPFLAGS} - > /dev/null 2> /dev/null << EOF
|
|
#include <btrfs/version.h>
|
|
EOF
|
|
if test $? -ne 0 ; then
|
|
echo btrfs_noversion
|
|
fi
|