[Mono-bugs] [Bug 656955] Regression: [DllImport] doesn't work on bundled libraries.
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Dec 3 21:27:54 EST 2010
https://bugzilla.novell.com/show_bug.cgi?id=656955
https://bugzilla.novell.com/show_bug.cgi?id=656955#c1
Jonathan Pryor <jpryor at novell.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Jonathan Pryor <jpryor at novell.com> 2010-12-04 02:27:53 UTC ---
Fixed in r8837.
Investigating this bug has raised an interesting (unresolved) problem: if you
use the Android NDK build system (ndk-build + Android.mk files), and have one
library (libused.so) and a library which links against the first library
(libuser.so):
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := used
LOCAL_SRC_FILES := used.c
include $(BUILD_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_SHARED_LIBRARIES = used
LOCAL_MODULE := user
LOCAL_SRC_FILES := user.c
include $(BUILD_SHARED_LIBRARY)
attempting to load libuser.so will FAIL, as LD_LIBRARY_PATH doesn't contain
$APPDIR/lib, and thus dlopen() won't check $APPDIR/lib for libused.so. I don't
see this documented anywhere on the Android site.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list