In mdadm-4.3.ebuild, the function mdadm_emake() sets CWFLAGS to a very basic "-Wall", which overrides and unsets a lot of flags that were intended to be set by the mdadm Makefile, such as -fstack-protector-strong and -fPIE. If GCC was compiled with the "-pie" use flag, then overriding CWFLAGS omits -fPIE from being passed to the compiler, even though "LDLIBS = -pie" is still applied elsewhere in the Makefile. Solution: Set CWFLAGS to "-Wall -fstack-protector-strong -fPIE" or leave it blank (set to "") in the ebuild's mdadm_emake() so that the Makefile defaults can be used. Reproducible: Always
Created attachment 890884 [details] emerge --info
Created attachment 890885 [details] build.log