diff options
author | Nils Wallménius <nils@rockbox.org> | 2011-06-07 11:56:23 +0000 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2011-06-07 11:56:23 +0000 |
commit | 331b23d15b765489a9abd344ddab9771125c3754 (patch) | |
tree | 39b809790113945740bec94cfbe27eb4113ef498 /apps/plugins/plugins.make | |
parent | f9f96325e20be46d1cf12492818485f2f84c3c3a (diff) | |
download | rockbox-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/plugins/plugins.make')
-rw-r--r-- | apps/plugins/plugins.make | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/plugins/plugins.make b/apps/plugins/plugins.make index 3271c57303..0c667aaf24 100644 --- a/apps/plugins/plugins.make +++ b/apps/plugins/plugins.make | |||
@@ -98,7 +98,8 @@ $(BUILDDIR)/apps/plugins/%.o: $(ROOTDIR)/apps/plugins/%.c | |||
98 | $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) -I$(dir $<) $(PLUGINFLAGS) -c $< -o $@ | 98 | $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) -I$(dir $<) $(PLUGINFLAGS) -c $< -o $@ |
99 | 99 | ||
100 | ifdef APP_TYPE | 100 | ifdef APP_TYPE |
101 | PLUGINLDFLAGS = $(SHARED_FLAG) # <-- from Makefile | 101 | PLUGINLDFLAGS = $(SHARED_LDFLAG) # <-- from Makefile |
102 | PLUGINFLAGS += $(SHARED_CFLAGS) # <-- from Makefile | ||
102 | else | 103 | else |
103 | PLUGINLDFLAGS = -T$(PLUGINLINK_LDS) -Wl,--gc-sections -Wl,-Map,$*.map | 104 | PLUGINLDFLAGS = -T$(PLUGINLINK_LDS) -Wl,--gc-sections -Wl,-Map,$*.map |
104 | OVERLAYLDFLAGS = -T$(OVERLAYREF_LDS) -Wl,--gc-sections -Wl,-Map,$*.refmap | 105 | OVERLAYLDFLAGS = -T$(OVERLAYREF_LDS) -Wl,--gc-sections -Wl,-Map,$*.refmap |