On Wed, 2007-10-31 at 22:43 -0400, David Boyce wrote:
> MYSQL_LIBS := $(shell mysql_config --libs)
>
> Notice the := as well as the $(shell).
This will work well. Alternatively, if you want to be portable to
other, non-GNU versions of make, you can use:
MYSQL_LIBS = `mysql_config --libs`
Note that this will not be as efficient as David's solution.
--
-------------------------------------------------------------------------------
Paul D. Smith <[EMAIL PROTECTED]> Find some GNU make tips at:
http://www.gnu.org http://make.mad-scientist.us
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make