Community
Participate
Working Groups
I have created GNU Autotools ANSI C hello world project(https://wiki.eclipse.org/Linux_Tools_Project/Autotools/User_Guide#Creating_an_Autotools_Project) I want to pass additional compiler options(like for ex: pthread), so I opened the project property dialog of the autotools project created before and navigated to Autotools > Configure Settings. Then in Configure tree node selected Advanced tree node. Here I have selected all compiler option checkboxes(line Debug(-g), Gprof support(-pg) etc) then added CFLAGS="-pthread" string in the additional command-line option text box. After I run Reconfigure project, in the generated make file I am getting CFLAGS = "-pthread", all other compiler options like -g, -pg were ignored. Is it a bug? How I can pass additional compiler option(s) along with the compiler option(s) provided as GUI controls in autotools project property dialog, in a GUI way?
Since Eclipse is not smart enough to deduce the compiler flags by running the make command, we should unhide the "C/C++ Build -> Settings -> Tool Settings" property page in Autotools global project settings and in per-file properties. Or add a feature to deduce these flags. This isn't rocket science.