Closed l2dy closed 8 years ago
:+1: Thank you for the patch. I updated libquic and goquic.
CC=/usr/local/bin/clang37 CXX=/usr/local/bin/clang++37 ./build_libs.sh
and
CGO_LDFLAGS="-L$GOPATH/src/github.com/devsisters/goquic/lib/freebsd_amd64" CGO_CFLAGS="-I$GOPATH/src/github.com/devsisters/goquic/libquic/boringssl/include" go build -a example/server.go
will works from now!
By default, there is no bash in FreeBSD, so set -e
won't work and env: bash: No such file or directory
. A #!/bin/sh
script would be better. If not so, the gmake if would be redundant and should be removed. Also, FreeBSD won't take those command, CC=/usr/local/bin/clang37: Command not found.
.
Why not use HTTPS clone by default?
Replaced shebang to #!/bin/sh
. /bin/sh
in FreeBSD also has -e
flag, according to http://man.freebsd.org/sh/ .
Replaced SSH clone to HTTPS clone.
$ CC=/usr/local/bin/clang37 CXX=/usr/local/bin/clang++37 ./build_libs.sh
(should be executed in one line) works on my FreeBSD machine. Hmm.. Am I still missing something?
Anyway,
setenv CC /usr/local/bin/clang37
setenv CCX /usr/local/bin/clang++37
./build_libs.sh
will work as an alternative.
I was using csh. Maybe that's the difference. Solved anyway.
Patches (GitHub turned TAB into spaces): p1.diff
p2.diff
p3.diff
p4.diff