mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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:
1 parent
caf745fdf8
commit
8a6b1665d9
2 files changed
+8
No files matched your search
@@ -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"])
|
||||
|
||||
Vendored
+4
@@ -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"
|
||||
|
||||
|
||||