Okay, I tried writing a wrapper script that sets LD_LIBRARY_PATH to a colon
seperated list of directories, where I have put the .so files, but this
doesn't seem to work.  I tried it in an emulator without any of the libraries
it needs, and it complained about not being able to find the .so files.

 Since this is getting a little off topic now, where should I go for further
help with this?

Thanks,
Aidan

Aidan Gauland wrote:
Hello,

I'm trying to edit an existing Makefile to link to some libraries statically, and some dynamically (no, I'm not doing this because I'm a control freak, it's
for an open source project).  I looked up the -static option in the ld man
page, and it says: "You may use this option multiple times on the command
line: it affects library searching for -l options which follow it."
However if I put -static AFTER the -l options for the libraries I want to link to dynamically, and BEFORE the ones I want to link to statically, I get some linking errors, which is the same as what I get when I put -static before ALL
of the -l options.

Anyone here able to give advice on this? I know this is a Linux USERS list,
but I hope this is simple enough to not be TOO off topic.

Thanks,
Aidan

Reply via email to