projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
9a1d5f0
)
Statically link std libraries under mingw
author
Marco Costalba
<mcostalba@gmail.com>
Thu, 21 Feb 2013 04:27:26 +0000 (
05:27
+0100)
committer
Marco Costalba
<mcostalba@gmail.com>
Thu, 21 Feb 2013 04:51:04 +0000 (
05:51
+0100)
Allows for easier redistribution.
No functional change.
src/Makefile
patch
|
blob
|
history
diff --git
a/src/Makefile
b/src/Makefile
index
6c90ac2
..
b23d671
100644
(file)
--- a/
src/Makefile
+++ b/
src/Makefile
@@
-256,6
+256,10
@@
endif
### 3.3 General linker settings
LDFLAGS = $(EXTRALDFLAGS)
+ifeq ($(comp),mingw)
+ LDFLAGS += -static-libstdc++ -static-libgcc
+endif
+
### On mingw use Windows threads, otherwise POSIX
ifneq ($(comp),mingw)
# Haiku has pthreads in its libroot, so only link it in on other platforms