Skip to content

Commit 1834024

Browse files
Vicente Olivert Rierajacmet
authored andcommitted
sox: disable SSP when using MIPS Codescape toolchains
MIPS Codescape toolchains don't support stack-smashing protection despite of using glibc, therefore we see failures like this one: mips-img-linux-gnu/bin/ld: cannot find -lssp Fixes: http://autobuild.buildroot.net/results/957/95721f7b88c46a20202fb02e408817097df965c3/ Signed-off-by: Vicente Olivert Riera <[email protected]> Signed-off-by: Peter Korsgaard <[email protected]>
1 parent 8b186e0 commit 1834024

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

package/sox/sox.mk

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ SOX_CONF_OPTS = --with-distro="Buildroot" --without-ffmpeg --disable-gomp \
1313
SOX_LICENSE = GPLv2+ (sox binary), LGPLv2.1+ (libraries)
1414
SOX_LICENSE_FILES = LICENSE.GPL LICENSE.LGPL
1515

16+
# MIPS Codescape toolchains don't support stack-smashing protection
17+
# despite of using glibc.
18+
ifeq ($(BR2_TOOLCHAIN_EXTERNAL_CODESCAPE_IMG_MIPS)$(BR2_TOOLCHAIN_EXTERNAL_CODESCAPE_MTI_MIPS),y)
19+
SOX_CONF_OPTS += --disable-stack-protector
20+
endif
21+
1622
ifeq ($(BR2_PACKAGE_ALSA_LIB_PCM),y)
1723
SOX_DEPENDENCIES += alsa-lib
1824
else

0 commit comments

Comments
 (0)