kopia lustrzana https://gitlab.com/sane-project/backends
Avoid printing "-I/usr/include" as this changes the default include order
(from Tim Waugh <twaugh@redhat.com>). Really check for entries in $cflags that are also in $includedir. Henning Meier-Geinitz <henning@meier-geinitz.de>DEVEL_2_0_BRANCH-1
rodzic
a9f35d5063
commit
33422298f6
|
@ -92,9 +92,12 @@ if test $# -gt 0; then
|
||||||
echo "-lsane ${LIBS}"
|
echo "-lsane ${LIBS}"
|
||||||
;;
|
;;
|
||||||
--cflags)
|
--cflags)
|
||||||
unique_cflags="-I${includedir}"
|
unique_cflags=
|
||||||
|
if test "${includedir}" != "/usr/include"; then
|
||||||
|
unique_cflags="${unique_cflags} -I${includedir}"
|
||||||
|
fi
|
||||||
for i in $cflags; do
|
for i in $cflags; do
|
||||||
if test $i != $includedir; then
|
if test "${i}" != "-I${includedir}"; then
|
||||||
unique_cflags="${unique_cflags} $i"
|
unique_cflags="${unique_cflags} $i"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Ładowanie…
Reference in New Issue