diff options
author | S. Davilla <davilla@4pi.com> | 2011-03-09 00:04:18 -0500 |
---|---|---|
committer | S. Davilla <davilla@4pi.com> | 2011-03-09 00:23:03 -0500 |
commit | 7f09c04d325765d51554697ed67117d2612156c1 (patch) | |
tree | ec4342a5ea605ea303f54d0dfbcac19f961bae1d /lib/xbadpcm | |
parent | b27f04cca4c421ae53e242884a3f0d4f5e8e6930 (diff) |
[darwin] changed, replace wrapping with wrapper.rb with linker alias_list
Diffstat (limited to 'lib/xbadpcm')
-rw-r--r-- | lib/xbadpcm/Makefile.in | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/xbadpcm/Makefile.in b/lib/xbadpcm/Makefile.in index 0cda9ebd9e..20807fd9e5 100644 --- a/lib/xbadpcm/Makefile.in +++ b/lib/xbadpcm/Makefile.in @@ -1,4 +1,5 @@ ARCH=@ARCH@ +SYSROOT=@SYSROOT@ OBJS=uXboxAdpcmDecoder.o ADPCMDll.o CFLAGS +=-D_LINUX -fPIC CXXFLAGS += -D_LINUX -fPIC @@ -7,8 +8,9 @@ SLIB=@abs_top_srcdir@/system/players/paplayer/adpcm-@ARCH@.so $(SLIB): $(OBJS) ifeq ($(findstring osx,$(ARCH)), osx) - ld -bundle -flat_namespace -undefined suppress -o $@ *.o $(BUNDLE1_O) - @abs_top_srcdir@/tools/Mach5/wrapper.rb $@;mv output.so $@ + $(CC) $(SYSROOT) -Wl,-alias_list,@abs_top_srcdir@/xbmc/cores/DllLoader/exports/wrapper_mach_alias \ + -bundle -undefined dynamic_lookup -read_only_relocs suppress -o $@ \ + @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 |