This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: LD_PRELOAD and dlopen
- To: "Stephen Done" <stephen dot done at cw dot com>
- Subject: Re: LD_PRELOAD and dlopen
- From: Andreas Jaeger <aj at suse dot de>
- Date: 29 May 2001 21:23:09 +0200
- Cc: <libc-alpha at sources dot redhat dot com>
- References: <ICEBKEBHKLMIFEDLONLMOEOOCAAA.stephen.done@cw.com>
"Stephen Done" <stephen.done@cw.com> writes:
> FAILED - Linux with -ldl
> ========================
> # make
> gcc -Wall -ldl -fPIC -shared -o preload.so preload.c
The order is important, put -ldl last:
gromit:/tmp/pr:[0]$ gcc -Wall -fPIC -shared -o preload.so preload.c -ldl
gromit:/tmp/pr:[0]$
And everything seems to work for me,
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj