On 2020/02/13 13:01, Alexander Bluhm wrote:
> On Mon, Feb 10, 2020 at 08:46:47PM +0000, Stuart Henderson wrote:
> > > I have build the library with debug symbols as I want to do development
> > > on top of it.  Do we have a policy for that?
> >
> > If you only need symbols on amd64 then I'd prefer just setting
> > DEBUG_PACKAGES=${BUILD_PACKAGES}, which will automatically split into
> > open62541 and debug-open62541 packages with detached symbols in the latter.
> >
> > If you would like them on other arches too then
> > -DCMAKE_BUILD_TYPE=RelWithDebInfo makes sense.
> 
> The debug feature works.  It helped to track down a double free in
> the library.  I think the -DCMAKE_BUILD_TYPE=RelWithDebInfo is still
> necessary to build the library, the debug symbols are just stripped
> later.
> 
> ok?

OK, though I hope we will be able to remove -DCMAKE_BUILD_TYPE later.
I think this should be fixed in the cmake port and/or cmake.port.mk
somewhere, looks like it strips libraries but not executables.
I don't think we can set RelWithDebInfo in the general case because it
changes the name of installed .cmake files, but that's not a problem
with open62541.

Reply via email to