aboutsummaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authortheuni <theuni-nospam-@xbmc.org>2012-06-01 15:12:25 -0400
committerCory Fields <theuni-nospam-@xbmc.org>2012-08-08 18:59:19 -0400
commitfdb76b5be3bf4c77096d73a38bfcd3e94f2195dc (patch)
tree1c505ccdedf232789cff4e83be2a48654dde64f2 /Makefile.in
parent3ca1ca2cdd33679a5a7de79168ebbf0b31f2724f (diff)
[droid] wrap cpluff
Diffstat (limited to 'Makefile.in')
-rwxr-xr-xMakefile.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in
index 6be215fade..7ab59f1141 100755
--- a/Makefile.in
+++ b/Makefile.in
@@ -255,7 +255,7 @@ lib/libapetag/.libs/libapetag.a: force
$(MAKE) -C lib/libapetag
lib/cpluff/libcpluff/.libs/libcpluff.a: force
$(MAKE) -C lib/cpluff/libcpluff
-system/libcpluff-@ARCH@.so: lib/cpluff/libcpluff/.libs/libcpluff.a
+system/libcpluff-@ARCH@.so: lib/cpluff/libcpluff/.libs/libcpluff.a exports
ifeq ($(findstring osx,@ARCH@), osx)
ifeq (@ARCH@, arm-osx)
$(CXX) $(LDFLAGS) -all_load -bundle -flat_namespace -undefined dynamic_lookup -read_only_relocs suppress -o $@ $<
@@ -263,7 +263,9 @@ ifeq ($(findstring osx,@ARCH@), osx)
$(CXX) $(LDFLAGS) -all_load -bundle -flat_namespace -undefined dynamic_lookup -lexpat $(BUNDLE1_O) -o $@ $<
endif
else
- cp lib/cpluff/libcpluff/.libs/libcpluff.so $@
+ $(CXX) $(LDFLAGS) -shared -o $@ -Wl,--whole-archive $< \
+ -Wl,--no-whole-archive \
+ `cat xbmc/cores/DllLoader/exports/wrapper.def` xbmc/cores/DllLoader/exports/wrapper.o -lexpat -ldl
endif
exports: xbmc/cores/DllLoader/exports/exports.a xbmc/cores/DllLoader/exports/util/exports_utils.a