]> git.ipfire.org Git - thirdparty/asterisk.git/commit
check_expr2: fix cross-compile/hardening issues
authorSebastian Kemper <sebastian_ml@gmx.net>
Sun, 12 Jan 2020 11:37:46 +0000 (12:37 +0100)
committerGeorge Joseph <gjoseph@digium.com>
Tue, 3 Mar 2020 14:18:06 +0000 (08:18 -0600)
commit61f943d405a2759c244f7b90d4147f9b8177ae37
treecd8a4d597a48a00a66e4aaab6e9e6cae249a9b24
parentc07ed4e651108475a2597df122ec7102ddef90c4
check_expr2: fix cross-compile/hardening issues

When building check_expr2 with ASLR PIE hardening enabled the linker
fails. This is resolved by adding the regular compiler flags when
building the object files from ast_expr2f.c and ast_expr2.c.

Note: The STANDALONE define is removed because it is already defined in
_ASTCFLAGS. YY_NO_INPUT is defined so that the compile survives
'--enable-dev-mode'.

Also, a Makefile variable "CROSS_COMPILING" is added so that the
build system doesn't try to run check_expr2 when cross-compiling,
because that will fail the build as will.

ASTERISK-28685 #close

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Change-Id: If435b7db9f9ad8266245bda51c81c220f9658915
configure
configure.ac
makeopts.in
menuselect/configure
utils/Makefile