diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2016-09-21 00:18:43 +0100 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2016-12-03 23:07:32 +0100 |
commit | bbf4ff2c91537f7b0b6a96efdc11c5eb905ee409 (patch) | |
tree | f0c389ec55b8d8c9b31fa28f10d71aff4309aa4c | |
parent | a88f57ec36d873d2c896e8c178c4bba2649f8d58 (diff) | |
download | rockbox-bbf4ff2c91537f7b0b6a96efdc11c5eb905ee409.tar.gz rockbox-bbf4ff2c91537f7b0b6a96efdc11c5eb905ee409.zip |
Fix DEBUG build codecs
In DEBUG build, the codec API struct is consider with DEBUG flag in apps/
but without DEBUG flah in rbcodecs/, leading to unmatched structure and horrible
crashes in some cases (mostly encoders). I have no idea why the codecs Makefile
removes the DEBUG flag (maybe for performance reasons?) but it cannot be right.
Change-Id: Idb2c5f66741408ec2939624590fc39c4cf69fc2b
-rw-r--r-- | lib/rbcodec/codecs/codecs.make | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/rbcodec/codecs/codecs.make b/lib/rbcodec/codecs/codecs.make index 13ad28fa65..8934272fcf 100644 --- a/lib/rbcodec/codecs/codecs.make +++ b/lib/rbcodec/codecs/codecs.make | |||
@@ -30,7 +30,6 @@ ifdef APP_TYPE | |||
30 | CODECFLAGS += $(SHARED_CFLAGS) # <-- from Makefile | 30 | CODECFLAGS += $(SHARED_CFLAGS) # <-- from Makefile |
31 | else | 31 | else |
32 | CODECLDFLAGS = -T$(CODECLINK_LDS) -Wl,--gc-sections -Wl,-Map,$(CODECDIR)/$*.map | 32 | CODECLDFLAGS = -T$(CODECLINK_LDS) -Wl,--gc-sections -Wl,-Map,$(CODECDIR)/$*.map |
33 | CODECFLAGS += -UDEBUG -DNDEBUG | ||
34 | endif | 33 | endif |
35 | CODECLDFLAGS += $(GLOBAL_LDOPTS) | 34 | CODECLDFLAGS += $(GLOBAL_LDOPTS) |
36 | 35 | ||