diff options
author | Benoît Thébaudeau <benoit.thebaudeau@advansee.com> | 2012-07-13 22:14:05 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2012-07-13 22:40:14 +0200 |
commit | 830c5868ed96a06007050f6b134e2a9954e88b10 (patch) | |
tree | 059e7620af9fa674b778659e5d51ed2e0ef96d94 /package/libmad/libmad.mk | |
parent | e388ac59039a9f5892b1afc7333a827d18ad0f68 (diff) |
libmad: Add optimization config options
Configuring libmad with --enable-speed compromises accuracy and can cause audio
clipping in some cases (heard on ARM platform with some loud MP3s), so give
users the choice of MAD optimizations.
The default config corresponds to the default behavior of libmad's configure.
Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
Diffstat (limited to 'package/libmad/libmad.mk')
-rw-r--r-- | package/libmad/libmad.mk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/package/libmad/libmad.mk b/package/libmad/libmad.mk index 6e53cf257..3c92d528d 100644 --- a/package/libmad/libmad.mk +++ b/package/libmad/libmad.mk @@ -30,6 +30,10 @@ LIBMAD_POST_INSTALL_TARGET_HOOKS += LIBMAD_INSTALL_TARGET_PC LIBMAD_CONF_OPT = \ --disable-debugging \ - --enable-speed + $(if $(BR2_PACKAGE_LIBMAD_OPTIMIZATION_SPEED),--enable-speed) \ + $(if $(BR2_PACKAGE_LIBMAD_OPTIMIZATION_ACCURACY),--enable-accuracy) \ + --$(if $(BR2_PACKAGE_LIBMAD_SSO),enable,disable)-sso \ + --$(if $(BR2_PACKAGE_LIBMAD_ASO),enable,disable)-aso \ + --$(if $(BR2_PACKAGE_LIBMAD_STRICT_ISO),enable,disable)-strict-iso $(eval $(call AUTOTARGETS)) |