mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 10:16:41 +00:00
make: use cflags/ldflags for config.h detection mechanism
The config.h detection scripts should use the provided CFLAGS/LDFLAGS as it tries to link libnl, libnet, and others. Signed-off-by: Nicolas Viennot <Nicolas.Viennot@twosigma.com>
This commit is contained in:
parent
e0fca8ba7a
commit
9433b7b9db
1 changed files with 1 additions and 1 deletions
|
|
@ -3,7 +3,7 @@ ifndef ____nmk_defined__utils
|
|||
#
|
||||
# Usage: option := $(call try-compile,language,source-to-build,cc-options,cc-defines)
|
||||
try-compile = $(shell sh -c 'echo "$(2)" | \
|
||||
$(CC) $(4) -x $(1) - $(3) -o /dev/null > /dev/null 2>&1 && \
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) $(4) -x $(1) - $(3) -o /dev/null > /dev/null 2>&1 && \
|
||||
echo true || echo false')
|
||||
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue