package/libmad: force arm mode instead of Thumb mode
Fix the following build failure: /tmp/ccv8mDeW.s:93: Error: selected processor does not support `smull r6,r7,r3,r1' in Thumb mode Fixes: - http://autobuild.buildroot.org/results/92a3f19b4fa12a7724f9e3d99284da4ad2beecb2 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
This commit is contained in:
parent
6e817622b8
commit
0aaadd525f
@ -31,6 +31,13 @@ LIBMAD_IGNORE_CVES += CVE-2017-8374
|
||||
# is able to properly behave in the face of a missing C++ compiler.
|
||||
LIBMAD_AUTORECONF = YES
|
||||
|
||||
# libmad has some assembly function that is not present in Thumb mode:
|
||||
# Error: selected processor does not support `smull r6,r7,r3,r1' in Thumb mode
|
||||
# so, we desactivate Thumb mode
|
||||
ifeq ($(BR2_ARM_INSTRUCTIONS_THUMB),y)
|
||||
LIBMAD_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -marm"
|
||||
endif
|
||||
|
||||
define LIBMAD_INSTALL_STAGING_PC
|
||||
$(INSTALL) -D package/libmad/mad.pc \
|
||||
$(STAGING_DIR)/usr/lib/pkgconfig/mad.pc
|
||||
|
Loading…
Reference in New Issue
Block a user