<div dir="ltr"><div>I've recently started running into problems with a port that passes option "-plugin-opt=-debugger-tune=gdb" to the linker which cause compilation to fail, as you can see from this error below:</div><div><br></div><div><div>  Run Build Command:"/usr/local/bin/gmake" "cmTC_799f7/fast"</div><div><br></div><div>  gmake[1]: Entering directory</div><div>  '.build/CMakeTmp/CMakeFiles/CMakeTmp'</div><div><br></div><div>  /usr/local/bin/gmake -f CMakeFiles/cmTC_799f7.dir/build.make</div><div>  CMakeFiles/cmTC_799f7.dir/build</div><div><br></div><div>  gmake[2]: Entering directory</div><div>  '.build/CMakeTmp/CMakeFiles/CMakeTmp'</div><div><br></div><div>  Building C object CMakeFiles/cmTC_799f7.dir/report_hostname.c.o</div><div><br></div><div>  /usr/bin/cc -DHAVE_UNISTD_H -pipe -fno-strict-aliasing -fno-common</div><div>  -fexceptions -std=gnu99 -m64 -g -ggdb3 -Qunused-arguments -O3 -march=native</div><div>  -finline-functions -flto -fno-omit-frame-pointer -fPIE -o</div><div>  CMakeFiles/cmTC_799f7.dir/report_hostname.c.o -c</div><div>  .build/CMakeTmp/report_hostname.c</div><div><br></div><div>  Linking C executable cmTC_799f7</div><div><br></div><div>  /usr/local/bin/cmake -E cmake_link_script</div><div>  CMakeFiles/cmTC_799f7.dir/link.txt --verbose=1</div><div><br></div><div>  /usr/bin/cc -pipe -fno-strict-aliasing -fno-common -fexceptions -std=gnu99</div><div>  -m64 -g -ggdb3 -Qunused-arguments -O3 -march=native -finline-functions</div><div>  -flto -fno-omit-frame-pointer CMakeFiles/cmTC_799f7.dir/report_hostname.c.o</div><div>  -o cmTC_799f7</div><div><br></div><div>  /usr/bin/ld: error: --plugin-opt: unknown option: -debugger-tune=gdb</div><div><br></div><div>  cc: error: linker command failed with exit code 1 (use -v to see</div><div>  invocation)</div><div><br></div><div>  gmake[2]: *** [CMakeFiles/cmTC_799f7.dir/build.make:98: cmTC_799f7] Error 1</div></div><div><br></div><div>I saw this issue that was abandoned.</div><div><br></div><a href="https://reviews.llvm.org/D42687">https://reviews.llvm.org/D42687</a><br><div><br></div><div>Has this issue moved forward, is there any ways to get around this issue when linking?</div><div><br></div><div>Best,</div><div>Owen</div></div>