Hi, i am trying to build a dynamic library to be able to call it from c++/c#
I am using the restic/builder:latest and invoking it using:
docker run --rm --volume “$PWD/restic-0.9.5:/restic” --volume “$PWD/output:/output” restic/builder
Now I changed the file: helpers/build-release-binaries/main.go to add the build mode: -buildmode=c-shared but am getting an error about missing gcc:
$sudo docker run --rm --volume "$PWD/restic-0.9.5:/restic" --volume "$PWD/output:/output" restic/builder building with 8 workers # github.com/restic/restic/cmd/restic loadinternal: cannot find runtime/cgo /usr/local/go/pkg/tool/linux_amd64/link: running gcc failed: exec: "gcc": executable file not found in $PATH
I’m a newbie to golang, but from what i read about it, it seems that only build type “exe” is supported without external linker. So my question is: is it somehow possible to change the build environment to build a library out of restic?