Fix Fedora build (undo _FORTIFY_SOURCE for pie)
Recent Fedora releases add -Wp,-D_FORTIFY_SOURCE=2 to rpm builds, which breaks compiling pie code on some architectures due to its trying to use (absent) memcpy_chk() instead of usual memcpy(). We must stand strong against FORTIFY_SOURCE in pie code. No pasaran! Viva la resistance! NOTE: in tests, FORTIFY_SOURCE is disabled for completely different reasons (see commit d1a36cc9 for details), so we're not touching it. [v2: resend the correct (latest) version] Reported-by:Reported-by: Adrian Reber <adrian@lisas.de> Signed-off-by:
Kir Kolyshkin <kir@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
Showing
Please
register
or
sign in
to comment