mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
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
This commit is contained in:
parent
f9f96325e2
commit
331b23d15b
8 changed files with 25 additions and 26 deletions
|
@ -98,7 +98,8 @@ $(BUILDDIR)/apps/plugins/%.o: $(ROOTDIR)/apps/plugins/%.c
|
|||
$(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) -I$(dir $<) $(PLUGINFLAGS) -c $< -o $@
|
||||
|
||||
ifdef APP_TYPE
|
||||
PLUGINLDFLAGS = $(SHARED_FLAG) # <-- from Makefile
|
||||
PLUGINLDFLAGS = $(SHARED_LDFLAG) # <-- from Makefile
|
||||
PLUGINFLAGS += $(SHARED_CFLAGS) # <-- from Makefile
|
||||
else
|
||||
PLUGINLDFLAGS = -T$(PLUGINLINK_LDS) -Wl,--gc-sections -Wl,-Map,$*.map
|
||||
OVERLAYLDFLAGS = -T$(OVERLAYREF_LDS) -Wl,--gc-sections -Wl,-Map,$*.refmap
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue