aboutsummaryrefslogtreecommitdiff
path: root/lib/addons/library.xbmc.addon/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'lib/addons/library.xbmc.addon/Makefile.in')
-rw-r--r--lib/addons/library.xbmc.addon/Makefile.in8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/addons/library.xbmc.addon/Makefile.in b/lib/addons/library.xbmc.addon/Makefile.in
index b9d327d6cc..1668ac7f22 100644
--- a/lib/addons/library.xbmc.addon/Makefile.in
+++ b/lib/addons/library.xbmc.addon/Makefile.in
@@ -5,15 +5,17 @@ CXXFLAGS=-fPIC
LIBNAME=libXBMC_addon
OBJS=$(LIBNAME).o
+ifeq ($(findstring osx,$(ARCH)), osx)
+LIB_SHARED=../../../addons/library.xbmc.addon/$(LIBNAME)-$(ARCH).dylib
+else
LIB_SHARED=../../../addons/library.xbmc.addon/$(LIBNAME)-$(ARCH).so
+endif
all: $(LIB_SHARED)
$(LIB_SHARED): $(OBJS)
ifeq ($(findstring osx,$(ARCH)), osx)
- $(CXX) $(LDFLAGS) -Wl,-alias_list,@abs_top_srcdir@/xbmc/cores/DllLoader/exports/wrapper_mach_alias \
- -bundle -undefined dynamic_lookup -o $@ \
- @abs_top_srcdir@/xbmc/cores/DllLoader/exports/wrapper.o $(OBJS)
+ $(CXX) $(CXXFLAGS) $(LDFLAGS) -dynamiclib -o $@ $(OBJS)
else
$(CXX) $(CFLAGS) $(LDFLAGS) -shared -g -o $(LIB_SHARED) $(OBJS)
endif