diff --git a/contrib/sdk/samples/cairo/Makefile b/contrib/sdk/samples/cairo/Makefile index 544f8d9676..40add9d7ce 100644 --- a/contrib/sdk/samples/cairo/Makefile +++ b/contrib/sdk/samples/cairo/Makefile @@ -19,7 +19,7 @@ OBJECTS = $(patsubst %.c, %.o, $(SOURCES)) default: cairo cairo: $(OBJECTS) Makefile - $(LD) $(LDFLAGS) $(LIBPATH) -Map cairo.map -o cairo $(OBJECTS) -lcairo2.dll -lgcc -lc.dll -lapp + $(LD) $(LDFLAGS) $(LIBPATH) --subsystem native -Map cairo.map -o cairo $(OBJECTS) -lcairo2.dll -lgcc -lc.dll -lapp objcopy cairo -O binary %.o : %.c Makefile $(SOURCES) diff --git a/contrib/sdk/samples/cairo/Makefile.static b/contrib/sdk/samples/cairo/Makefile.static index cad496945d..1b8667545e 100644 --- a/contrib/sdk/samples/cairo/Makefile.static +++ b/contrib/sdk/samples/cairo/Makefile.static @@ -19,7 +19,7 @@ OBJECTS = $(patsubst %.c, %.o, $(SOURCES)) default: cairo cairo: $(OBJECTS) Makefile.static - $(LD) $(LDFLAGS) $(LIBPATH) -Map cairo.map -o cairo $(OBJECTS) -lcairo2 -lpixman-1 -lfreetype -lc -lgcc -lc + $(LD) $(LDFLAGS) $(LIBPATH) --subsystem console -Map cairo.map -o cairo $(OBJECTS) -lcairo2 -lpixman-1 -lfreetype -lc -lgcc -lc objcopy cairo -O binary %.o : %.c Makefile $(SOURCES)