From b8125d0a6560fa68f10677eabe6eaaaa2529c3af Mon Sep 17 00:00:00 2001 From: Joachim Bauch Date: Sun, 21 Sep 2014 14:24:44 +0200 Subject: [PATCH] Compile everything with "g++" and link statically. --- example/DllLoader/Makefile | 6 +++--- example/SampleDLL/Makefile | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/example/DllLoader/Makefile b/example/DllLoader/Makefile index dcfc263..84c8c68 100644 --- a/example/DllLoader/Makefile +++ b/example/DllLoader/Makefile @@ -4,18 +4,18 @@ ifeq ($(UNAME), Linux) ifndef PLATFORM PLATFORM = i686 endif -CC = $(PLATFORM)-w64-mingw32-gcc +CC = $(PLATFORM)-w64-mingw32-g++ CXX = $(PLATFORM)-w64-mingw32-g++ LINK = $(PLATFORM)-w64-mingw32-ld else -CC = gcc +CC = g++ CXX = g++ LINK = ld endif RM = rm CFLAGS = -Wall -g -LDFLAGS = +LDFLAGS = -static ifdef UNICODE CFLAGS += -DUNICODE -D_UNICODE diff --git a/example/SampleDLL/Makefile b/example/SampleDLL/Makefile index 6ab5629..d5e8085 100644 --- a/example/SampleDLL/Makefile +++ b/example/SampleDLL/Makefile @@ -4,12 +4,12 @@ ifeq ($(UNAME), Linux) ifndef PLATFORM PLATFORM = i686 endif -CC = $(PLATFORM)-w64-mingw32-gcc +CC = $(PLATFORM)-w64-mingw32-g++ CXX = $(PLATFORM)-w64-mingw32-g++ LINK = $(PLATFORM)-w64-mingw32-ld RC = $(PLATFORM)-w64-mingw32-windres else -CC = gcc +CC = g++ CXX = g++ LINK = ld RC = rc