On Mon, 2010-10-11 at 17:26 -0600, Eric Blake wrote:
> There's your problem.  x86_64-w64-mingw32 is a cross-compiler.  It 
> compiles mingw executables, not cygwin executables. And mingw lacks 
> dlopen.  You'll never get this to work.

"Never" might be a *bit* harsh.  If OP can't easily port the software to
use LoadLibrary and friends, then there is always the dlfcn-win32
wrapper.  A .cygport for x86_64-w64-mingw32 attached.


Yaakov

CROSS_HOST="x86_64-w64-mingw32"
SVN_URI="http://dlfcn-win32.googlecode.com/svn";
SVN_REV=${PV#*_svn}
inherit cross svn

DESCRIPTION="dlopen/dlsym/dlclose wrapper for MinGW"
HOMEPAGE="http://code.google.com/p/dlfcn-win32/";

src_compile() {
        lndirs
        cd ${B}
        ./configure \
                --prefix=${CROSS_PREFIX} \
                --incdir=${CROSS_INCLUDEDIR} \
                --libdir=${CROSS_LIBDIR} \
                --enable-shared --enable-static \
                --cross-prefix=${CROSS_HOST}- \
                || error "configure failed"
        cygmake
}

src_test() {
        cd ${B}
        PATH="${B}:${PATH}"
        cygtest
}

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply via email to