52527Re: [linux] makefile/c linkage question
- Sep 1, 2007On Sat, 1 Sep 2007 05:19:43 +0000
Michael Kjorling <michael@...> wrote:
> Well, there's gcc's -D switch (define macro) that would seem to doNothing bores me more than watching configure scripts run through the
> just about exactly what you are looking for. That and variable
> expansion could go a long way if you don't want an full-blown autoconf
same stuff time and time again!
> Something like:Thanks very much, this does the trick nicely, that's just what I was
> DATABASE_MYSQL=-DMYSQL -lmysql
> DATABASE_PGSQL=-DPGSQL -lpostgres
> gcc $(DATABASE) ...
> This would let the user just fill in the "whichever" part, and the
> appropriate options would be passed to the compiler and linker.
looking for but could not see in the man page :-)
The HSSI to www.brokenmachine.com is wigging because of a trailing
space in /etc/netgroups. Microsoft is downloading warez & porn.
:: http://www.s5h.net/ :: http://www.s5h.net/gpg
[Non-text portions of this message have been removed]
- << Previous post in topic