Skip to content

Commit

Permalink
Trying to fix rpath
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuMoalic committed Oct 26, 2023
1 parent dc93600 commit 5ac37c8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ jobs:

- name: Build Binary
run: |
VERSION=$(date +'%Y.%m.%d')
export VERSION=$(date +'%Y.%m.%d')
echo $VERSION
LDFLAGS="-X github.com/MathieuMoalic/amumax/engine.VERSION=$VERSION"
export LDFLAGS="-X github.com/MathieuMoalic/amumax/engine.VERSION=$VERSION"
echo $LDFLAGS
NVCC_CCBIN=/usr/bin/gcc
CGO_CFLAGS="-I${LD_LIBRARY_PATH}"
CGO_LDFLAGS="-lcufft -lcurand -lcuda -L${LD_LIBRARY_PATH} -Wl,-rpath -Wl,\$ORIGIN/$RPATH"
CGO_CFLAGS_ALLOW='(-fno-schedule-insns|-malign-double|-ffast-math)'
export NVCC_CCBIN=/usr/bin/gcc
export CGO_CFLAGS="-I${LD_LIBRARY_PATH}"
export CGO_LDFLAGS="-lcufft -lcurand -lcuda -L${LD_LIBRARY_PATH} -Wl,-rpath -Wl,\$ORIGIN/$RPATH"
export CGO_CFLAGS_ALLOW='(-fno-schedule-insns|-malign-double|-ffast-math)'
NVCCFLAGS="-std=c++03 -ccbin=$NVCC_CCBIN --compiler-options -Werror --compiler-options -Wall -Xptxas -O3 -ptx"
go build -v -o ./build/amumax -ldflags "$LDFLAGS"
Expand Down

0 comments on commit 5ac37c8

Please sign in to comment.