Skip to content
Snippets Groups Projects
Commit 1ed27a07 authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

Modify gitlab-ci to set CGO flags appropriately when running make version v. building the binary

parent 2f275a41
Branches feature/ctidh
No related tags found
1 merge request!699Replace CSIDH with CTIDH
...@@ -72,12 +72,15 @@ build: ...@@ -72,12 +72,15 @@ build:
- export CGO_CFLAGS="-g -I${P} -DBITS=${CTIDH_BITS}" - export CGO_CFLAGS="-g -I${P} -DBITS=${CTIDH_BITS}"
# copy highctidh_*.so into the same as the build directory as highctidh.so # copy highctidh_*.so into the same as the build directory as highctidh.so
- cp libhighctidh_${CTIDH_BITS}.so ../libhighctidh.so - cp libhighctidh_${CTIDH_BITS}.so ../libhighctidh.so
- export CGO_LDFLAGS="-L./ -Wl,-rpath,'$ORIGIN' -lhighctidh" # for make version call only.
- export CGO_LDFLAGS="-L./ -Wl,-rpath,./ -lhighctidh"
- cd .. - cd ..
- make version - make version
- mkdir -p release - mkdir -p release
- cp libhighctidh.so release/ - cp libhighctidh.so release/
# - GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags '-w -s' ./... # - GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags '-w -s' ./...
# Set the origin flag int he final binary
- export CGO_LDFLAGS="-L./ -Wl,-rpath,\$ORIGIN -lhighctidh"
- GOOS=linux GOARCH=amd64 go build -tags ctidh -ldflags '-w -s' -o release/client.linux64 main.go - GOOS=linux GOARCH=amd64 go build -tags ctidh -ldflags '-w -s' -o release/client.linux64 main.go
# - GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -ldflags '-w -s' -o release/client.win64 main.go # - GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -ldflags '-w -s' -o release/client.win64 main.go
# - GOOS=windows GOARCH=386 CGO_ENABLED=0 go build -ldflags '-w -s' -o release/client.win32 main.go # - GOOS=windows GOARCH=386 CGO_ENABLED=0 go build -ldflags '-w -s' -o release/client.win32 main.go
......
// Code generated by go generate; DO NOT EDIT. // Code generated by go generate; DO NOT EDIT.
// This file was generated by robots at // This file was generated by robots at
// 2022-09-15 10:52:12.1953796 -0700 PDT m=+0.451573601 // 2022-09-26 17:06:44.523543757 +0000 UTC m=+0.008732690
package xxdk package xxdk
const GITVERSION = `55b66f6b Update proto files` const GITVERSION = `2f275a41 try with single $`
const SEMVER = "4.2.0" const SEMVER = "4.2.0"
const DEPENDENCIES = `module gitlab.com/elixxir/client const DEPENDENCIES = `module gitlab.com/elixxir/client
...@@ -21,11 +21,11 @@ require ( ...@@ -21,11 +21,11 @@ require (
github.com/spf13/jwalterweatherman v1.1.0 github.com/spf13/jwalterweatherman v1.1.0
github.com/spf13/viper v1.12.0 github.com/spf13/viper v1.12.0
gitlab.com/elixxir/bloomfilter v0.0.0-20211222005329-7d931ceead6f gitlab.com/elixxir/bloomfilter v0.0.0-20211222005329-7d931ceead6f
gitlab.com/elixxir/comms v0.0.4-0.20220914220142-601071b77d78 gitlab.com/elixxir/comms v0.0.4-0.20220916183942-257688b39f0c
gitlab.com/elixxir/crypto v0.0.7-0.20220901215826-1ceaeb59081f gitlab.com/elixxir/crypto v0.0.7-0.20220901215826-1ceaeb59081f
gitlab.com/elixxir/ekv v0.2.1 gitlab.com/elixxir/ekv v0.2.1
gitlab.com/elixxir/primitives v0.0.3-0.20220901220638-1acc75fabdc6 gitlab.com/elixxir/primitives v0.0.3-0.20220901220638-1acc75fabdc6
gitlab.com/xx_network/comms v0.0.4-0.20220914220351-2e461edbfe48 gitlab.com/xx_network/comms v0.0.4-0.20220916183430-cc3077fedf9f
gitlab.com/xx_network/crypto v0.0.5-0.20220902182733-69aad094b487 gitlab.com/xx_network/crypto v0.0.5-0.20220902182733-69aad094b487
gitlab.com/xx_network/primitives v0.0.4-0.20220902183448-319596e2fec8 gitlab.com/xx_network/primitives v0.0.4-0.20220902183448-319596e2fec8
go.uber.org/ratelimit v0.2.0 go.uber.org/ratelimit v0.2.0
...@@ -36,6 +36,7 @@ require ( ...@@ -36,6 +36,7 @@ require (
) )
require ( require (
git.xx.network/elixxir/ctidh_cgo v0.0.0-20220921025742-051a023d7613 // indirect
github.com/andres-erbsen/clock v0.0.0-20160526145045-9e14626cd129 // indirect github.com/andres-erbsen/clock v0.0.0-20160526145045-9e14626cd129 // indirect
github.com/badoux/checkmail v1.2.1 // indirect github.com/badoux/checkmail v1.2.1 // indirect
github.com/elliotchance/orderedmap v1.4.0 // indirect github.com/elliotchance/orderedmap v1.4.0 // indirect
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment