This is the mail archive of the
mailing list for the Cygwin project.
is LD_PRELOAD available in cygwin?
- From: Günther Jedenastik <g dot jedenastik at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 01 Aug 2007 08:55:27 +0200
- Subject: is LD_PRELOAD available in cygwin?
using google i found only a few post's about LD_PRELOAD in cygwin
Now i'm not sure if the linux-like LD_PRELOAD feature is available in
What i try to do:
using g++ to compile a dll which overload's the open(); glibc system call.
Using preload i want to load my own dll with my open(); function. using
dlsym(); i try to load the glibc open(); function.
On a suse box it works great, but cygwin seems to ignore LD_PRELOAD.
the commands i use:
g++ -g -c -Wall test.cpp
g++ -shared -o libtest.dll test.o -ldl
Q1: is LD_PRELOAD available in cygwin? if yes, any hint's why it's not
working? (maybe some configuration problem or so, any hint would be
Q2: are there any alternative ways to preloading causing the same result?
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html