From 2fcd276b9c76b4b0ae48ffd081a98bbde3c1d2f3 Mon Sep 17 00:00:00 2001 From: Bertrand Lorentz Date: Sun, 23 Feb 2014 16:36:03 +0100 Subject: [PATCH] build: Fix compiler parameters in gio and gtk-gio samples Having parameters starting with a forward slash seems to break when building with MinGW on Windows. So we use a dash to be consistent with other Makefiles. Also use the CSFLAGS variable in the sample/gio Makefile, instead of hardcoding the debug flag. --- sample/gio/Makefile.am | 4 ++-- sample/gtk-gio/Makefile.am | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sample/gio/Makefile.am b/sample/gio/Makefile.am index 243ca9b47..3e7db53b4 100755 --- a/sample/gio/Makefile.am +++ b/sample/gio/Makefile.am @@ -6,13 +6,13 @@ assemblies = \ $(top_builddir)/glib/glib-sharp.dll \ $(top_builddir)/gio/gio-sharp.dll -references=$(addprefix /r:, $(assemblies)) +references=$(addprefix -r:, $(assemblies)) noinst_SCRIPTS = $(TARGETS) CLEANFILES = $(TARGETS) $(DEBUGS) .cs.exe: $(assemblies) - $(CSC) /debug /out:$@ $(references) $< + $(CSC) $(CSFLAGS) /out:$@ $(references) $< EXTRA_DIST = \ AppInfo.cs \ diff --git a/sample/gtk-gio/Makefile.am b/sample/gtk-gio/Makefile.am index b273709cd..b965ce364 100755 --- a/sample/gtk-gio/Makefile.am +++ b/sample/gtk-gio/Makefile.am @@ -11,13 +11,13 @@ assemblies = \ $(top_builddir)/pango/pango-sharp.dll \ $(top_builddir)/atk/atk-sharp.dll -references=$(addprefix /r:, $(assemblies)) +references=$(addprefix -r:, $(assemblies)) noinst_SCRIPTS = $(TARGETS) CLEANFILES = $(TARGETS) $(DEBUGS) .cs.exe: $(assemblies) - $(CSC) /out:$@ $(references) $< + $(CSC) $(CSFLAGS) /out:$@ $(references) $< EXTRA_DIST = \ MountOperation.cs