Fix cross-compilation

Currently if "x${DISTRO}" isn't set to "Linux", unsafe header/library
path for cross-compilation such as '-I/usr/local/include' are used.
As a result, motion can't be cross-compiled, so change "x${DISTRO}" to
"${DISTRO}" as it seems that this was the intended use.

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
This commit is contained in:
Fabrice Fontaine
2017-05-03 21:55:30 +02:00
parent 936b114e5a
commit ea598bf07c

View File

@@ -45,7 +45,7 @@ if test "${DISTRO}" = "Darwin"; then
TEMP_LDFLAGS="${LDFLAGS} -L/sw/lib"
TEMP_LIBS="-L/sw/lib"
else
if test "x${DISTRO}" != "Linux"; then
if test "${DISTRO}" != "Linux"; then
TEMP_CFLAGS="${CFLAGS} -I/usr/local/include"
TEMP_CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
TEMP_LDFLAGS="${LDFLAGS} -L/usr/local/lib"