GNOME Bugzilla – Bug 437260
CFLAGS are poinsoned by the OpenGL test
Last modified: 2007-05-10 07:41:50 UTC
the current configure.ac doesn't save and restore and CFLAGS during the OpenGL test
Created attachment 87911 [details] [review] Proposed fix
Why does CFLAGS need to be saved/restored if it's not modified?
In my case the CFLags needs to be saved and restored because, I am cross compiling, and for some reason a -I/usr/include end up appearing in the CFLAGS, and this breaks the compilation of gstmultifile.c, because it tries to include unistd.h which is not available in the target platform. p.s. I am cross compiling usng mingw32 to generate windows binaries and libraries from Linux.
I've applied it as it won't hurt and CPP/CXX flags are saved too and they are not modified in a obvious way. 2007-05-10 Stefan Kost <ensonic@users.sf.net> Patch by: Ali Sabil <ali.sabil@gmail.com> * configure.ac: Save and restore CFLAGS for OpenGL check. Fixes #437260.
Actually I just found out that there is still a problem with my patch, the CFLAGS needs to be saved before AG_GST_CHECK_X otherwise the saving is useless
stupid me, the CPPFLAGS and LIBS are obviously changed. I reverted the patch and fixed the CFLAGS thing in the AG_GST_CHECK_X macro.