Forcing Specified Libraries

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Hal Vaughan

    #1

    Forcing Specified Libraries

    I am not a C programmer. I've read a bit here and there and produced a
    "Hello, World" program or two, but I've never gotten into what actually
    happens with the ./configure && make && make install process.

    I am producing a project that will go on a CD and NOT install on any system.
    In other words, anything program files will be run directly from the CD.
    I've had no problem using Java by putting it directly on the CD and using a
    bash script (this is in Linux) to run any Java classes.

    I'm having problem with one C program. I've tried to compile it to create a
    static binary, but even though I use "./configure --enable-static
    --disable-shared", it still links against shared libraries. I'm sure any
    experienced C programmers are way ahead of me by now and realize my
    problem: I need to put this binary on a CD and make sure it runs using only
    the resources on the CD since it could be run on a number of different
    Linux distros.

    So is there any way to take this binary and the libraries it uses, put them
    all in one directory on the CD, use a bash script to run the program and
    tell it to load from the libraries in its own directory instead of the
    standard ones? In other words, to have the program and all it needs in one
    directory (or with subdirectories) so I can expect it to run without
    trouble on any non-exotic Linux system?

    Thanks for any help on this!

    Hal
  • Vladimir S. Oka

    #2
    Re: Forcing Specified Libraries

    On Wednesday 15 March 2006 19:29, Hal Vaughan opined (in
    <afKdnQEAgZV394 XZ4p2dnA@comcas t.com>):
    [color=blue]
    > I am not a C programmer. I've read a bit here and there and produced
    > a "Hello, World" program or two, but I've never gotten into what
    > actually happens with the ./configure && make && make install process.[/color]

    By the sound of it, your question is best answered in one of the Linux
    groups, or one that deals with your tool chain. Certainly not here (see
    <http://clc-wiki.net/wiki/Introduction_to _comp.lang.c>).

    <snip OT stuff>

    --
    BR, Vladimir

    If I could drop dead right now, I'd be the happiest man alive!
    -- Samuel Goldwyn

    Comment

    Working...