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
1 changed files with 9 additions and 1 deletions

View File

@ -406,7 +406,15 @@ then
echo "WARNING: could not enable use of libcdio as system adapter"
fi
else
echo "enabled use of libcdio as system adapter"
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
echo "enabled use of libcdio as system adapter"
fi
fi
if test x$LIBCDIO_DEF = x-DLibburn_use_libcdiO
then