I don't know the build system for this program (and this is a generic bug template so I cannot tell you which program exactly is), but my tests shows that it's not respecting CFLAGS properly. Please look into it, since it's important to respect user CFLAGS. Thanks, Diego
Created attachment 171480 [details, diff] Patch enabling CFLAGS to be specified (use w/ updated ebuild below)
Created attachment 171482 [details, diff] Patch supporting FEATURES=nostrip (use w/ ebuild below)
Created attachment 171484 [details] spim ebuild supporting FEATURES=nostrip and proper CFLAGS handling Updated app-emulation/spim-7.3 ebuild: Support FEATURES=nostrip by patching out the '-s' option to install. Use EAPI=2. Properly pass CFLAGS and LDFLAGS to the build.
Moving to maintainer-needed@ since compnerd left Gentoo (#71985).
Fixed in ebuild for version 7.5.