Skip to content
Snippets Groups Projects
  • Sebastian Kemper's avatar
    b7fbb9c4
    check_expr2: fix cross-compile/hardening issues · b7fbb9c4
    Sebastian Kemper authored
    
    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: default avatarSebastian Kemper <sebastian_ml@gmx.net>
    Change-Id: If435b7db9f9ad8266245bda51c81c220f9658915
    b7fbb9c4
    History
    check_expr2: fix cross-compile/hardening issues
    Sebastian Kemper authored
    
    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: default avatarSebastian Kemper <sebastian_ml@gmx.net>
    Change-Id: If435b7db9f9ad8266245bda51c81c220f9658915