How to check for linker argument support?

2016-12-10 Thread Bent Bisballe Nyeng
Hi list I want to use the --no-undefined linker argument through the -Wl,--no-undefined CXXFLAGS. This is only supported by gcc but has a clang alternative: -Wl,-undefined,error. I have tried writing a test in my configure.ac script to figure out which one should be used, but my test reports '

Re: How to check for linker argument support?

2016-12-10 Thread Bent Bisballe Nyeng
On 12/10/16 12:22, Bent Bisballe Nyeng wrote: Hi list I want to use the --no-undefined linker argument through the -Wl,--no-undefined CXXFLAGS. This is only supported by gcc but has a clang alternative: -Wl,-undefined,error. I have tried writing a test in my configure.ac script to figure out whi

Re: How to check for linker argument support?

2016-12-10 Thread Mike Frysinger
On 10 Dec 2016 12:22, Bent Bisballe Nyeng wrote: > I want to use the --no-undefined linker argument through the > -Wl,--no-undefined CXXFLAGS. This is only supported by gcc but has a > clang alternative: -Wl,-undefined,error. you're referring to a linker option, not a compiler, so gcc/clang don'