From 89a0a89801cbd2dcaf573a5ee9beb8163897c450 Mon Sep 17 00:00:00 2001 From: Chad Retz Date: Fri, 25 May 2018 17:28:11 -0500 Subject: [PATCH] Update for Linux embedded Tor --- process/embedded/process.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/process/embedded/process.go b/process/embedded/process.go index 694901c..41d3728 100644 --- a/process/embedded/process.go +++ b/process/embedded/process.go @@ -12,8 +12,7 @@ // Windows this means something like http://tdm-gcc.tdragon.net/ needs to be // present with gcc.exe on the PATH. // -// NOTE: Other OSs besides Windows have not been tested but likely require an -// LDFLAGS setting here. Pull requests are welcomed. +// NOTE: This has only been tested with Windows and Linux. package embedded import ( @@ -36,6 +35,7 @@ import ( #cgo LDFLAGS: -L${SRCDIR}/../../../tor-static/zlib/dist/lib -lz #cgo LDFLAGS: -L${SRCDIR}/../../../tor-static/openssl/dist/lib -lssl -lcrypto #cgo windows LDFLAGS: -lws2_32 -lcrypt32 -lgdi32 +#cgo !windows LDFLAGS: -lm #include #include