On 27.09.22 at 09:49 Johannes Kastl wrote:
On 27.09.22 at 09:18 Marcus Meissner wrote:
export RPM_OPT_FLASG="$RPM_OPT_FLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
That did not work, even when I fixed the typo ("FLASG"). :-)
export CLAGS="%optflags -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
That does not work either (when using "CFLAGS" instead of "CLAGS"). It also does not work when moving the %optflags to the end.
Both variants might have worked, but the build failed. But apparently due to other reasons that I found out later, when I got a solution that only had FORTIFY_SOURCE=2 and still failed. Sorry for any confusion...
P.S.: I just found out that the error with lxc and lxcfs was not related to FORTIFY_SOURCE=3, as it still fails to build using FORTIFY_SOURCE=2. But I am one step further to getting them fixed...
-- Johannes Kastl Linux Consultant & Trainer Tel.: +49 (0) 151 2372 5802 Mail: kastl@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg http://www.b1-systems.de GF: Ralph Dehner Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537