https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237068
--- Comment #50 from Mark Millard <[email protected]> --- (In reply to Mark Millard from comment #49) In case it helps for having debug information around, in /usr/ports/Mk/bsd.port.mk I use: STRIP_CMD= ${TRUE} .endif DEBUG_FLAGS?= -g +.if defined(ALLOW_OPTIMIZATIONS_FOR_WITH_DEBUG) +CFLAGS:= ${CFLAGS} ${DEBUG_FLAGS} +.else CFLAGS:= ${CFLAGS:N-O*:N-fno-strict*} ${DEBUG_FLAGS} +.endif .if defined(INSTALL_TARGET) INSTALL_TARGET:= ${INSTALL_TARGET:S/^install-strip$/install/g} .endif I define ALLOW_OPTIMIZATIONS_FOR_WITH_DEBUG to get the changed build behavior for ports for poudriere-based builds: # more /usr/local/etc/poudriere.d/make.conf WANT_QT_VERBOSE_CONFIGURE=1 # DEFAULT_VERSIONS+=perl5=5.28 gcc=9 llvm=80 WRKDIRPREFIX?=/wrkdirs # # From a local /usr/ports/Mk/bsd.port.mk extension: ALLOW_OPTIMIZATIONS_FOR_WITH_DEBUG= # .if ${.CURDIR:M*/devel/llvm*} #WITH_DEBUG= .elif ${.CURDIR:M*/lang/cling*} #WITH_DEBUG= .elif ${.CURDIR:M*/www/*webkit*} #WITH_DEBUG= .else WITH_DEBUG= .endif MALLOC_PRODUCTION= -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain To unsubscribe, send any mail to "[email protected]"
