Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Jul 2013 01:53:50 -0700
From:      Arjun <insanegod.god@gmail.com>
To:        freebsd-drivers@freebsd.org
Subject:   Newbie question - Custom compiler flags in Makefile
Message-ID:  <CAEaYdZdDtcQ0O3deQvCnPgtf_7YYtV3G0ZJf8Wy76iXPD%2B9Emw@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hey,

I am writing a memory driver and i am using the standard freebsd driver
Makefile which includes .bsd.kmod.mk

So, this comes with its own compiler flags. Specifically, i dont want the
-Wmissing-prototypes option. How do i remove it.

In general, how can one change the default compiler flags for compilation. ?

I read bsd.sys.mk file and it seems that for the above option to be
removed, i need to have WARNS <3. But i want all other -W options except
for this.

How do i do this.?

Any help is appreciated.

Thanks



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAEaYdZdDtcQ0O3deQvCnPgtf_7YYtV3G0ZJf8Wy76iXPD%2B9Emw>