Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jun 2018 14:13:55 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        "Simon J. Gerraty" <sjg@juniper.net>
Cc:        Hartmut Brandt <hartmut.brandt@dlr.de>,  "freebsd-hackers@freebsd.org" <hackers@freebsd.org>
Subject:   Re: makefile question
Message-ID:  <CANCZdfo2gmm=tuND4HZCLFV0GVMBL48ShVX6_4RffT7ORdxuPg@mail.gmail.com>
In-Reply-To: <62709.1530130106@kaos.jnpr.net>
References:  <alpine.BSF.2.21.999.1806272128240.76791@beagle.kn.op.dlr.de> <CANCZdfp8OHFHdsxf8qdk8ksRkaUPzvrZVgCBOLJS=fNo%2B9=wHg@mail.gmail.com> <62709.1530130106@kaos.jnpr.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jun 27, 2018 at 2:08 PM, Simon J. Gerraty <sjg@juniper.net> wrote:

> Warner Losh <imp@bsdimp.com> wrote:
> > > In libbsnmp a header file is created during the build process, which
> > > obviously ends up in the object tree. Now I need to include this file
> > > when building the daemon and modules from usr.sbin. I have the feeling
> > > that doing
> > >
> > > CFLAGS += -I../../../lib/libbsnmp/libbsnmp
> > >
> >
> > use ${SRCTOP}/lib/... here
>
> I think he said it's a generated header.
>
> Looks like share/mk/src.sys.obj.mk now sets OBJTOP
> or at least OBJROOT even for non-meta-mode build.
>
> So -I${OBJTOP}/lib/libbsnmp/libbsnmp should probably work.
>

Oh, you're right. I missed that detail.

Warner



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfo2gmm=tuND4HZCLFV0GVMBL48ShVX6_4RffT7ORdxuPg>