On Thu, Feb 13, 2020 at 12:39:50PM +0000, Stuart Henderson wrote: > 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.
Without -DCMAKE_BUILD_TYPE the PLIST looks nicer. -lib/cmake/open62541/open62541Targets-relwithdebinfo.cmake +lib/cmake/open62541/open62541Targets${MODCMAKE_BUILD_SUFFIX} lib/cmake/open62541/open62541Targets.cmake But the debug library is missing the debug symbols. -rw-r--r-- 1 root bin 546736 Feb 13 14:37 /usr/local/lib/.debug/libopen62541.so.0.0.dbg -rw-r--r-- 1 root bin 581392 Feb 13 14:37 /usr/local/lib/libopen62541.so.0.0 So egdb stack trace does not work: #0 0x00001f0b50862e0e in ?? () from /usr/local/lib/libopen62541.so.0.0 #1 0x00001f0b50862dc4 in UA_clear () from /usr/local/lib/libopen62541.so.0.0 #2 0x00001f0b508b6570 in ?? () from /usr/local/lib/libopen62541.so.0.0 #3 0x00001f0b50874240 in UA_ServerConfig_clean () When built with -DCMAKE_BUILD_TYPE the debug library is much bigger and the stack trace contains all relevant information. -rw-r--r-- 1 root bin 2080333 Feb 12 23:29 /usr/local/lib/.debug/libopen62541.so.0.0.dbg -rw-r--r-- 1 root bin 594512 Feb 12 23:29 /usr/local/lib/libopen62541.so.0.0 So somebody has to fix something :-) bluhm