discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Howto write GNUmakefile.preamble with using C API


From: Nicola Pero
Subject: Re: Howto write GNUmakefile.preamble with using C API
Date: Tue, 22 Jul 2008 12:05:39 +0200 (CEST)

>> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]