aboutsummaryrefslogtreecommitdiffstats
path: root/Godeps/_workspace/src/github.com/ethereum/ethash/ethashc.go
diff options
context:
space:
mode:
authorGustav Simonsson <gustav.simonsson@gmail.com>2015-05-08 01:39:55 +0800
committerGustav Simonsson <gustav.simonsson@gmail.com>2015-05-08 01:39:55 +0800
commit3593662b0c3d5fec8bdd5c335e8e2d41b93b0fb7 (patch)
treefa2f13da0bfd599ab1a8390294ab6c8ac3277e95 /Godeps/_workspace/src/github.com/ethereum/ethash/ethashc.go
parent97c37356fdcfac8b704c3d75b33e322a737c4e55 (diff)
downloadgo-tangerine-3593662b0c3d5fec8bdd5c335e8e2d41b93b0fb7.tar
go-tangerine-3593662b0c3d5fec8bdd5c335e8e2d41b93b0fb7.tar.gz
go-tangerine-3593662b0c3d5fec8bdd5c335e8e2d41b93b0fb7.tar.bz2
go-tangerine-3593662b0c3d5fec8bdd5c335e8e2d41b93b0fb7.tar.lz
go-tangerine-3593662b0c3d5fec8bdd5c335e8e2d41b93b0fb7.tar.xz
go-tangerine-3593662b0c3d5fec8bdd5c335e8e2d41b93b0fb7.tar.zst
go-tangerine-3593662b0c3d5fec8bdd5c335e8e2d41b93b0fb7.zip
Update ethash deps (more build fixes, tests)
Diffstat (limited to 'Godeps/_workspace/src/github.com/ethereum/ethash/ethashc.go')
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/ethash/ethashc.go12
1 files changed, 11 insertions, 1 deletions
diff --git a/Godeps/_workspace/src/github.com/ethereum/ethash/ethashc.go b/Godeps/_workspace/src/github.com/ethereum/ethash/ethashc.go
index 25863828f..8a441525d 100644
--- a/Godeps/_workspace/src/github.com/ethereum/ethash/ethashc.go
+++ b/Godeps/_workspace/src/github.com/ethereum/ethash/ethashc.go
@@ -1,6 +1,17 @@
package ethash
/*
+ -mno-stack-arg-probe disables stack probing which avoids the function
+ __chkstk_ms being linked. this avoids a clash of this symbol as we also
+ separately link the secp256k1 lib which ends up defining this symbol
+
+ 1. https://gcc.gnu.org/onlinedocs/gccint/Stack-Checking.html
+ 2. https://groups.google.com/forum/#!msg/golang-dev/v1bziURSQ4k/88fXuJ24e-gJ
+ 3. https://groups.google.com/forum/#!topic/golang-nuts/VNP6Mwz_B6o
+
+*/
+
+/*
#cgo CFLAGS: -std=gnu99 -Wall
#cgo windows CFLAGS: -mno-stack-arg-probe
#cgo LDFLAGS: -lm
@@ -10,7 +21,6 @@ package ethash
#include "src/libethash/io.c"
#ifdef _WIN32
-# include "src/libethash/util_win32.c"
# include "src/libethash/io_win32.c"
# include "src/libethash/mmap_win32.c"
#else