Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
client
Commits
1ed27a07
Commit
1ed27a07
authored
2 years ago
by
Richard T. Carback III
Browse files
Options
Downloads
Patches
Plain Diff
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
!699
Replace CSIDH with CTIDH
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+4
-1
4 additions, 1 deletion
.gitlab-ci.yml
xxdk/version_vars.go
+5
-4
5 additions, 4 deletions
xxdk/version_vars.go
with
9 additions
and
5 deletions
.gitlab-ci.yml
+
4
−
1
View file @
1ed27a07
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
xxdk/version_vars.go
+
5
−
4
View file @
1ed27a07
// 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.2022091
4220142-601071b77d78
gitlab.com/elixxir/comms v0.0.4-0.2022091
6183942-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.2022091
4220351-2e461edbfe48
gitlab.com/xx_network/comms v0.0.4-0.2022091
6183430-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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment