aboutsummaryrefslogtreecommitdiff
path: root/lib/vgmstream
diff options
context:
space:
mode:
Diffstat (limited to 'lib/vgmstream')
-rw-r--r--lib/vgmstream/Makefile.in11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/vgmstream/Makefile.in b/lib/vgmstream/Makefile.in
index 9db00ba6cb..0d5cfad179 100644
--- a/lib/vgmstream/Makefile.in
+++ b/lib/vgmstream/Makefile.in
@@ -1,8 +1,9 @@
ARCH=@ARCH@
+SYSROOT=@SYSROOT@
ifeq ($(findstring osx,$(ARCH)), osx)
- CFLAGS +=-D_LINUX -fPIC -DPIC -O3 -DXBMC
- CXXFLAGS +=-D_LINUX -fPIC -DPIC -O3 -DXBMC
+ CFLAGS +=-fms-extensions -D_LINUX -O3 -DXBMC
+ CXXFLAGS +=-fms-extensions -D_LINUX -O3 -DXBMC
else
CFLAGS +=-D_LINUX -fPIC -DXBMC
CXXFLAGS +=-D_LINUX -fPIC -DXBMC
@@ -195,9 +196,9 @@ SLIB=@abs_top_srcdir@/system/players/paplayer/vgmstream-@ARCH@.so
$(SLIB): $(OBJS)
ifeq ($(findstring osx,$(ARCH)), osx)
- ld -bundle -flat_namespace -undefined suppress -o $@ $(OBJS) $(BUNDLE1_O)
- @abs_top_srcdir@/tools/Mach5/wrapper.rb $@;mv output.so $@
- chmod +x $@
+ $(CXX) $(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 $(OBJS) $(BUNDLE1_O)
else
$(CXX) $(CXXFLAGS) $(LDFLAGS) -shared -o $@ $(OBJS) `cat @abs_top_srcdir@/xbmc/cores/DllLoader/exports/wrapper.def` @abs_top_srcdir@/xbmc/cores/DllLoader/exports/wrapper.o