I want to use some mysql functions and therefore I have to pass $(mysql_config --cflags --libs) to the compiler. I found different ways in the Makefile/configure script file to do it:
- “./configure CFLAGS=-I/usr/include/mysql LDFLAGS=-L/usr/lib/i386-linux-gnu” before make OR
- “make ASTCFLAGS=”$(mysql_config --cflags --libs)"".
But they both do not work. I also tried all sorts of combinations. When compiling a simple test program using “gcc -o test test.c $(mysql_config --cflags --libs)” everything works fine.
Have I done anything wrong or are there other possibilities?
Thank you in advance!