@@This is an auto-filed bug@@ Feel free to change the summary at your convenience. Issue: dev-libs/rocr-runtime does not respect CFLAGS/LDFLAGS. Discovered on: amd64 NOTE: To reproduce this issue you may want to add "-frecord-gcc-switches" to CFLAGS/CXXFLAGS/FFLAGS/FCFLAGS and LDFLAGS="${LDFLAGS} -Wl,--defsym=__gentoo_check_ldflags__=0". If this is not something about c/c++ see this bug as an hint to hide the QA warning (with QA_FLAGS_IGNORED) where is not possible to respect CFLAGS/LDFLAGS.
Created attachment 646802 [details] build.log build log and emerge --info
Actually I think it respects CFLAGS, but overrides CXXFLAGS. Since all the code is C++, that does not help much, though... It also overrides LDFLAGS for shared libraries (executables would be fine, which is maybe why Gentoo QA checks do not detect it) and the only thing it builds is a shared library. Compiler flags: C -pipe -O2 -march=znver1 -g C++ -Wall -std=c++11 -fpic -Wl,--unresolved-symbols=ignore-in-shared-libs -fno-strict-aliasing -m64 -msse -msse2 -Werror -fexceptions -fno-rtti -fvisibility=hidden -Wno-error=sign-compare -Wno-sign-compare -Wno-write-strings -Wno-conversion-null -fno-math-errno -fno-threadsafe-statics -fmerge-all-constants -fms-extensions -Wno-error=comment -Wno-co mment -Wno-error=pointer-arith -Wno-pointer-arith -Wno-error=unused-variable -Wno-error=unused-function -Wno-error=unused-but-set-variable Linker flags: Executable -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu Module -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu Shared -Wl,-Bdynamic -Wl,-z,noexecstack -Wl,/tmp/portage/dev-libs/rocr-runtime-3.5.0/work/ROCR-Runtime-rocm-3.5.0/src/hsacore.so.link -Wl,--version-script=/tmp/portage/dev-libs/rocr-runtime-3.5.0/work/ROCR-Runtime-rocm-3.5.0/src/hsacore.so.def -Wl,--enable-new-dtags Quite annoying when you try to build it with debug symbols and splitdebug...