Raised This Month: $12 Target: $400
 3% 

Question about Linux linking...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Keeper
Senior Member
Join Date: Nov 2006
Old 04-23-2007 , 16:00   Question about Linux linking...
Reply With Quote #1

Not being an expert in any way regarding Linux, I have starting using the following in my compiling script:

Code:
export LD_RUN_PATH=".:../../bin:$LD_RUN_PATH"
Is there a problem with doing this? when i do an ldd in the compile directory it sees the linked binaries at "./vstlib_i486.so" and in the addons folder it sees it at "../../bin/vstdlib_i486.so".

I just want to make sure that I'm not doing something that will cause problems down the road for any of the server operators that use my plugin.

Thanks,
Keeper
Keeper is offline
showdax
Senior Member
Join Date: Dec 2004
Old 04-27-2007 , 15:49   Re: Question about Linux linking...
Reply With Quote #2

I always create symbolic links to vstdlib_i468.so and tier0_i486.so in the directory that I'm compiling in. I don't use LD_RUN_PATH or anything like that.

That generally gives me something like this:
Code:
$ ldd Release/dod_cof_mm_i486.so
        linux-gate.so.1 =>  (0xffffe000)
        vstdlib_i486.so => not found
        tier0_i486.so => not found
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7ef5000)
        libdl.so.2 => /lib/tls/libdl.so.2 (0xb7ef1000)
        libm.so.6 => /lib/tls/libm.so.6 (0xb7ecc000)
        libc.so.6 => /lib/tls/libc.so.6 (0xb7d99000)
        /lib/ld-linux.so.2 (0x80000000)
Here's basically what most of my Makefiles look like, if you're curious: http://dackz.net/sa/makefile.txt -- though it looks a bit different when I'm trying to avoid libstdc++ (it doesn't link to libstdc++.a or libgcc_s, it doesn't create symbolic links for them, etc.)
showdax is offline
Send a message via MSN to showdax
Keeper
Senior Member
Join Date: Nov 2006
Old 04-27-2007 , 16:29   Re: Question about Linux linking...
Reply With Quote #3

I've done the same thing, but i was helping a friend with his linux build and he said he used this method. Obviously both aren't the same because the ldd provides different results. The game works with both tho. I was just wanting to make sure that LD_RUN_PATH would not cause problems.

I'm keeping mine as linked, and using LD_LIBRARY_PATH when I do the ldd to make sure it's ok.
Keeper is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:52.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode