Politically correct way of building dhcp?
David W. Hankins
David_Hankins at isc.org
Tue Jun 21 15:10:24 UTC 2005
On Tue, Jun 21, 2005 at 10:49:36PM +1000, Andrew Pollock wrote:
> What's the politically correct way of convincing it to use
> specific/additional compiler flags? Like I'd like to build it with -O2 -Wall
> for example.
Edit site.conf, what you enter in site.conf is inserted into the makefiles
between 'Makefile.conf' and the target makefile (in each subdirectory).
So you can over-ride or manipulate the 'COPTS' variable for your
platform.
> Are there any plans to use GNU autoconf/automake etc down the track?
An autoconf build environment is on the wishlist for a future release.
Note that building at -O2 and -Wall will produce some warnings. The
heritage of the build environment has been -g. It only recently moved
to -O -g on some gcc platforms, which enabled some additional warnings
and were silenced.
-O2 enables another set of warnings, and they will be triggered.
So -O2 -Wall -Werror probably isn't advisable unless you enjoy pain.
--
David W. Hankins "If you don't do it right the first time,
Software Engineer you'll just have to do it again."
Internet Systems Consortium, Inc. -- Jack T. Hankins
More information about the dhcp-hackers
mailing list