>> ADDITIONAL_OBJCFLAGS += $(shell mysql_config --cflags) > > If you are specifying include paths and macro definitions (which is > what pkg-config does) then you should be using CPPFLAGS, not CFLAGS > or OBJCFLAGS, since you are passing arguments to the preprocessor, > not the compiler. It should then work for C, C++, Objective-C, and > preprocessed assembly files.
This has nothing to do with the problem, but might actually be a good point - maybe you're right :-) I had installed mysql_config and tried it out -- $mysql_config --cflags -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv This seems to include both preprocessor and compiler flags, which is why I suggested ADDITIONAL_CFLAGS and ADDITIONAL_OBJCFLAGS. Feel free to suggest otherwise if you know more about mysql_config or how to use it. Thanks _______________________________________________ Discuss-gnustep mailing list [email protected] http://lists.gnu.org/mailman/listinfo/discuss-gnustep
