mirror of
https://github.com/openwrt/openwrt.git
synced 2026-10-14 17:28:28 +04:00
libopenssl3 differs between builds depending on the environment of the build host, e.g. in the images of the Turris Omnia: -compiler: arm-openwrt-linux-muslgnueabi-gcc -fPIC -pthread -Os ... +compiler: arm-openwrt-linux-muslgnueabi-gcc -fPIC -pthread -Wa,--noexecstack -Os ... - GNU_STACK ... RWE 0x10 + GNU_STACK ... RW 0x10 Configure probes whether the assembler supports --noexecstack by running $CROSS_COMPILE$CC, with CC taken from the environment. A host which sets CC to select its compiler, e.g. CC=gcc-13, makes it run arm-openwrt-linux-muslgnueabi-gcc-13, which does not exist, so the flag is silently dropped and libcrypto ends up with an executable stack. Pass CC=gcc to Configure, so that it always probes the cross compiler. With CC=gcc-13 in the environment, the configuration now gets -Wa,--noexecstack like a build without CC set. Link: https://github.com/openwrt/openwrt/pull/25719 Signed-off-by: Paul Spooren <mail@aparcar.org>