On Wed, 5 Mar 2003, Brendan Bispham wrote:
> >
> > james@xxxxxx:~/tmp/tn5250/src> ldd tn5250
> >         not a dynamic executable
> >
> > so ./tn5250 should be fine.
>
> So do I, so I did a less and it looks like a bash script... I don't get it. Is
> the tn5250 a script until 'make install'? Does it GCC the tn5250 binary on
> the fly? What voodoo going on here?

Oh yeah - duh, tn5250 is a script.  Right near the top is:

relink_command="  < whole bunch of stuff here > gcc -g -O2 -o
\$progdir/\$file tn5250.o  ./.libs/lib5250.so  < some more stuff > "

that relink_command shows it is using the libs in .libs within the current
directory.  That contains the libraries we just built.  So ./tn5250 does
indeed do just what we want (i.e. it doesn't use the installed lib5250.so
but instead uses the version just built).

James Rich

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.