Commit 0de25968 authored by Jehan's avatar Jehan
Browse files

configure: default CPPFLAGS_FOR_BUILD to CPPFLAGS on native builds.

Similarly to what I did for CFLAGS and LDFLAGS in commit 20fdb8df, the
preprocessor flags for build tools should also be correctly defaulted
and used when building invert-svg.
parent d45fd404
......@@ -2143,6 +2143,9 @@ if test "$cross_compiling" != "yes"; then
if test "x$CFLAGS_FOR_BUILD" = "x"; then
CFLAGS_FOR_BUILD="$CFLAGS"
fi
if test "x$CPPFLAGS_FOR_BUILD" = "x"; then
CPPFLAGS_FOR_BUILD="$CPPFLAGS"
fi
fi
AC_ARG_ENABLE(vector-icons, [ --disable-vector-icons use raster icons rather than vector ones (default=auto)], ,
......
......@@ -45,7 +45,7 @@ test_clipboard_LDADD = $(GTK_LIBS)
if ENABLE_VECTOR_ICONS
invert-svg$(BUILD_EXEEXT): invert-svg.c
$(CC_FOR_BUILD) -o $@ $< $(NATIVE_GLIB_LIBS) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $(NATIVE_GLIB_CFLAGS)
$(CC_FOR_BUILD) -o $@ $< $(NATIVE_GLIB_LIBS) $(CPPFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $(NATIVE_GLIB_CFLAGS)
# compute_svg_viewbox is not built or used because librsvg is just too buggy
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment