Am 22.05.2023 um 17:04 schrieb Edgar Fuß:
When using a lang/gcc8 patched to use devel/binutils (because the base as chokes on what gcc generates), base strip/objcopy may be unable to cope with certain relocation types. Now strip is easy because it is a tool, which can be redirected to use gstrip from the same pkgsrc binutils the compiler uses for as and ld. But objcopy is not a tool. Is there a recipie for adding a new tool? Or is there a better way to cope?
No, there's no documented recipe. https://github.com/NetBSD/pkgsrc/commits/trunk/mk/tools has some commits that added tools in the past. After you added your tool, run 'make show-all-tools' in any package directory to check whether your tool looks similar to the others. Roland