Skip to content

Commit

Permalink
Compile everything with "g++" and link statically.
Browse files Browse the repository at this point in the history
  • Loading branch information
fancycode committed Sep 21, 2014
1 parent bb736dc commit b8125d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions example/DllLoader/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions example/SampleDLL/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b8125d0

Please sign in to comment.