• Jo-Philipp Wich's avatar
    build: fix HOST_CONFIGURE_VARS placement · c05b3199
    Jo-Philipp Wich authored and Štěpán Henek's avatar Štěpán Henek committed
    
    
    Instead of passing HOST_CONFIGURE_VARS as arguments to the configure script,
    pass it as environment variables which brings the logic in line with the
    behaviour of package-defaults.mk.
    
    The change is needed since passing environment variables as configure
    parameters only works with GNU autoconf which evaluates command line arguments
    looking like variable assignments. Doing the same with non-autoconf configure
    scripts is not guaranteed to work since such scripts might terminate due to
    unknown argument errors.
    
    One example case is the cmake configure script which bails out when called
    as "./configure LDFLAGS=..." but not when called as "LDFLAGS=... ./configure".
    
    Also change the SHELL override to CONFIG_SHELL in the default
    HOST_CONFIGURE_VARS as the former is not properly propagated through the
    various GNU configure invocations since it gets lost when configure re-
    executes itself.
    
    A prior attempt to change the variable placement had to be reverted due to
    the missing SHELL -> CONFIG_SHELL change, leading to misgenerated libtool
    executables in various packages.
    
    Signed-off-by: default avatarJo-Philipp Wich <jo@mein.io>
    c05b3199