Skip to content

Commit

Permalink
Update configure
Browse files Browse the repository at this point in the history
move generated object file to TMPDIR in check_bpf_use_errno()

Signed-off-by: yangpeng <[email protected]>
  • Loading branch information
linuxholic authored and tohojo committed Jan 11, 2024
1 parent 2a2c3d9 commit ceffed3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ check_bpf_use_errno()
int dummy(void *ctx) { return 0; }
EOF

compile_err=$($CLANG -target bpf ${ARCH_INCLUDES} -c $TMPDIR/bpf_use_errno_test.c 2>&1)
compile_err=$($CLANG -target bpf ${ARCH_INCLUDES} -c $TMPDIR/bpf_use_errno_test.c -o $TMPDIR/bpf_use_errno_test 2>&1)
if [ "$?" -ne "0" ]; then
echo "*** ERROR - Clang BPF-prog cannot include <errno.h>"
echo " - Install missing userspace header file"
Expand Down

0 comments on commit ceffed3

Please sign in to comment.