From: Stuart Henderson Subject: Re: mention MAKE_FLAGS in the Porting Guide To: Jan Stary Cc: tech@openbsd.org Date: Thu, 15 Oct 2026 13:55:36 +0100 On 2026/10/15 14:46, Jan Stary wrote: > Apparently, over 900 ports use MAKE_FLAGS, so I think it is worth it > mentioning MAKE_FLAGS in the guide. Currently it is mentioned among > the Special Topics: overriding lib names with SO_VERSION is the major > use case it seems, but one might also need it for a simple BUILD_TLS=yes > or BUILD_OS=openbsd etc. > > Jan > > > Index: guide.html > =================================================================== > RCS file: /cvs/www/faq/ports/guide.html,v > diff -u -p -r1.117 guide.html > --- guide.html 20 Sep 2026 23:31:32 -0000 1.117 > +++ guide.html 15 Oct 2026 12:40:20 -0000 > @@ -414,6 +414,15 @@ Use CONFIGURE_ARGS+= to app > > >
  • > +Specify a target or variables for the software's Makefile. > +

    > +Once configured, most software's build system needs nothing more > +than a simple make command. In some cases, however, > +it needs to be provided with extra arguments or variable assigments > +such as BUILD_TLS=yes. These can be specified > +in the port's Makefile using MAKE_FLAGS. > + > +

  • > Try building the port with make build. > >
    • > Probably needs to touch on when you use MAKE_FLAGS (i.e. often used for overriding things which are in an upstream Makefile, though this is not necessarily passed through to recursive makes) and MAKE_ENV (doesn't override but generally does get passed through).. Please keep the usual style for www: new sentence -> new line