diff options
author | theuni <theuni-nospam-@xbmc.org> | 2011-09-16 01:02:39 -0400 |
---|---|---|
committer | theuni <theuni-nospam-@xbmc.org> | 2011-09-16 15:54:27 -0400 |
commit | 493650feac5c2143d33cd527536797b1c8b3db6c (patch) | |
tree | 93864ee19a0f79c892f395b0919a36a508057855 /lib/xbadpcm | |
parent | 4511eb1fcf75c2b562a4b0da2018572f6865ae17 (diff) |
build: 3rd party lib linking symbols cleanup
Fix several linking concerns that are usually masked in one way or another.
To see, add -Wl,--unresolved-symbols=ignore-in-shared-libs to LDFLAGS
1. The 3rd party libs that we build can't resolve our wrapped functions until
runtime, so tell the linker not to expect them.
2. Various vis and screensavers were relying on XBMC bringing in GL libs.
With these fixes, linking opts like --unresolved-symbols=ignore-in-shared-libs
now work properly. This is useful for annoying libs like gles or egl which
may depend on other libs that cannot resolve at link-time.
TODO: ProjectM still neeeds attention
Diffstat (limited to 'lib/xbadpcm')
-rw-r--r-- | lib/xbadpcm/Makefile.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/xbadpcm/Makefile.in b/lib/xbadpcm/Makefile.in index 894146c771..2a53042781 100644 --- a/lib/xbadpcm/Makefile.in +++ b/lib/xbadpcm/Makefile.in @@ -12,7 +12,8 @@ ifeq ($(findstring osx,$(ARCH)), osx) @abs_top_srcdir@/xbmc/cores/DllLoader/exports/wrapper.o *.o $(BUNDLE1_O) chmod +x $@ else - $(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ *.o `cat @abs_top_srcdir@/xbmc/cores/DllLoader/exports/wrapper.def` @abs_top_srcdir@/xbmc/cores/DllLoader/exports/wrapper.o + $(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ *.o -Wl,--unresolved-symbols=ignore-all \ + `cat @abs_top_srcdir@/xbmc/cores/DllLoader/exports/wrapper.def` @abs_top_srcdir@/xbmc/cores/DllLoader/exports/wrapper.o endif include @abs_top_srcdir@/Makefile.include |