summaryrefslogtreecommitdiff
path: root/apps/codecs/codecs.make
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2011-06-07 11:56:23 +0000
committerNils Wallménius <nils@rockbox.org>2011-06-07 11:56:23 +0000
commit331b23d15b765489a9abd344ddab9771125c3754 (patch)
tree39b809790113945740bec94cfbe27eb4113ef498 /apps/codecs/codecs.make
parentf9f96325e20be46d1cf12492818485f2f84c3c3a (diff)
downloadrockbox-331b23d15b765489a9abd344ddab9771125c3754.tar.gz
rockbox-331b23d15b765489a9abd344ddab9771125c3754.zip
FS#12144, Use -fPIC -fvisibility=hidden only for plugins on sim and app builds and enable it for 32 bit too. Fixes linking errors on simbuilds.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29983 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/codecs.make')
-rw-r--r--apps/codecs/codecs.make3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/codecs/codecs.make b/apps/codecs/codecs.make
index be1a0e0f00..1a5dd8f36a 100644
--- a/apps/codecs/codecs.make
+++ b/apps/codecs/codecs.make
@@ -112,7 +112,8 @@ $(CODECDIR)/%.o: $(ROOTDIR)/apps/codecs/%.S
112 -I$(dir $<) $(CODECFLAGS) $(ASMFLAGS) -c $< -o $@ 112 -I$(dir $<) $(CODECFLAGS) $(ASMFLAGS) -c $< -o $@
113 113
114ifdef APP_TYPE 114ifdef APP_TYPE
115 CODECLDFLAGS = $(SHARED_FLAG) # <-- from Makefile 115 CODECLDFLAGS = $(SHARED_LDFLAG) # <-- from Makefile
116 CODECFLAGS += $(SHARED_CFLAGS) # <-- from Makefile
116else 117else
117 CODECLDFLAGS = -T$(CODECLINK_LDS) -Wl,--gc-sections -Wl,-Map,$(CODECDIR)/$*.map 118 CODECLDFLAGS = -T$(CODECLINK_LDS) -Wl,--gc-sections -Wl,-Map,$(CODECDIR)/$*.map
118 CODECFLAGS += -UDEBUG -DNDEBUG 119 CODECFLAGS += -UDEBUG -DNDEBUG