Preliminary blocking --enable-libcdio if CFLAGS, LDFLAGS contain option -static

This commit is contained in:
Thomas Schmitt 2017-05-05 09:05:27 +02:00
parent d812835323
commit 22d552ad60

View File

@ -405,9 +405,17 @@ then
then then
echo "WARNING: could not enable use of libcdio as system adapter" echo "WARNING: could not enable use of libcdio as system adapter"
fi fi
else
if echo " $CFLAGS $LDFLAGS " | grep ' -static ' >/dev/null
then
echo "WARNING : found option -static in CFLAGS or LDFLAGS"
echo "WARNING : libcdio API conflicts with inner symbols of xorriso"
echo "WARNING : use of libcdio as system adapter disabled"
LIBCDIO_DEF=
else else
echo "enabled use of libcdio as system adapter" echo "enabled use of libcdio as system adapter"
fi fi
fi
if test x$LIBCDIO_DEF = x-DLibburn_use_libcdiO if test x$LIBCDIO_DEF = x-DLibburn_use_libcdiO
then then
AC_DEFINE([Libburn_use_libcdiO], []) AC_DEFINE([Libburn_use_libcdiO], [])