Description:
[Detailed description of the issue or question]
I want to modify the mySQL directory path of the pmm agent.
So, I want to download the source code and re-create it as a binary file after modifying it.
The binary file of the pmm agent is statically link, and I want to know how you made the go language statically link.
Steps to Reproduce:
[Step-by-step instructions on how to reproduce the issue, including any specific settings or configurations]
i downloaded pmm agent source code
here : GitHub - percona/pmm-agent: pmm-agent for PMM 2.x.
go build -o /go/bin/myapp -a -ldflags '-extldflags "-static"'
i tried this, but got this fail log, but the library below already exists in OS
GitHub - percona/pmm-agent: pmm-agent for PMM 2.x.
/usr/local/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
/usr/bin/ld: cannot find -lresolv
/usr/bin/ld: cannot find -lpthread
/usr/bin/ld: cannot find -lc
collect2: error: ld returned 1 exit status
Version:
[Insert the version number of the software]
v2.39.0
Logs:
[If applicable, include any relevant log files or error messages]
Expected Result:
[What the user expected to see or happen before the issue occurred]
Actual Result:
[What actually happened when the user encountered the issue]
Additional Information:
[Include any additional information that could be helpful to diagnose the issue, such as browser or device information]