Files
xen/m4/set_cflags_ldflags.m4
T
Roger Pau Monne 8a6b1665d9 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>
2020-05-06 17:42:26 +01:00

25 lines
612 B
Plaintext

AC_DEFUN([AX_SET_FLAGS],
[for cppflag in $PREPEND_INCLUDES
do
PREPEND_CPPFLAGS="$PREPEND_CPPFLAGS -I$cppflag"
done
for ldflag in $PREPEND_LIB
do
PREPEND_LDFLAGS="$PREPEND_LDFLAGS -L$ldflag"
done
for cppflag in $APPEND_INCLUDES
do
APPEND_CPPFLAGS="$APPEND_CPPFLAGS -I$cppflag"
done
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"])