delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/10/11/20:51:05

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-50.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,TW_DL,TW_FC,TW_SV,TW_YG
X-Spam-Check-By: sourceware.org
Subject: Re: x86_64-w64-mingw32-g++ can't find -ldl
From: "Yaakov (Cygwin/X)" <yselkowitz AT users DOT sourceforge DOT net>
To: cygwin <cygwin AT cygwin DOT com>
In-Reply-To: <4CB39D3F.6070602@redhat.com>
References: <29938897 DOT post AT talk DOT nabble DOT com> <4CB39D3F DOT 6070602 AT redhat DOT com>
Date: Mon, 11 Oct 2010 19:50:50 -0500
Message-ID: <1286844650.4192.12.camel@YAAKOV04>
Mime-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

--=-uD/6/w7d9yj7YU+W+R1I
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit

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


--=-uD/6/w7d9yj7YU+W+R1I
Content-Disposition: attachment; filename="mingw64-w64-dlfcn-0_svn19-1.cygport"
Content-Type: text/plain; name="mingw64-w64-dlfcn-0_svn19-1.cygport"; charset="UTF-8"
Content-Transfer-Encoding: 7bit

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
}


--=-uD/6/w7d9yj7YU+W+R1I
Content-Type: text/plain; charset=us-ascii

--
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
--=-uD/6/w7d9yj7YU+W+R1I--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019