configure: also add EXTRA_PREFIX to {CPP/LD}FLAGS

The path provided by EXTRA_PREFIX should be added to the search path
of the configure script, like it's done in Config.mk. Not doing so
makes the search path for configure differ from the search path used
by the build.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
[ wei: run autogen.sh ]
Acked-by: Wei Liu <wl@xen.org>
This commit is contained in:
Roger Pau Monne authored and Wei Liu committed 2020-05-06 17:42:26 +01:00
1 parent caf745fdf8
commit 8a6b1665d9
2 files changed
+8

No files matched your search

+4
View File
@@ -15,6 +15,10 @@ for ldflag in $APPEND_LIB
do
APPEND_LDFLAGS="$APPEND_LDFLAGS -L$ldflag"
done
if [ ! -z $EXTRA_PREFIX ]; then
CPPFLAGS="$CPPFLAGS -I$EXTRA_PREFIX/include"
LDFLAGS="$LDFLAGS -L$EXTRA_PREFIX/lib"
fi
CPPFLAGS="$PREPEND_CPPFLAGS $CPPFLAGS $APPEND_CPPFLAGS"
LDFLAGS="$PREPEND_LDFLAGS $LDFLAGS $APPEND_LDFLAGS"])
+4
View File
@@ -4678,6 +4678,10 @@ for ldflag in $APPEND_LIB
do
APPEND_LDFLAGS="$APPEND_LDFLAGS -L$ldflag"
done
if ! -z $EXTRA_PREFIX ; then
CPPFLAGS="$CPPFLAGS -I$EXTRA_PREFIX/include"
LDFLAGS="$LDFLAGS -L$EXTRA_PREFIX/lib"
fi
CPPFLAGS="$PREPEND_CPPFLAGS $CPPFLAGS $APPEND_CPPFLAGS"
LDFLAGS="$PREPEND_LDFLAGS $LDFLAGS $APPEND_LDFLAGS"
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.