I got a question about this...
I have seen people use LD_RUN_PATH before linking, something like
EXPORT LD_RUN_PATH=".:../../bin:$LD_RUN_PATH"
So when you do the ldd on it either in the addons directory or the compile
directory it will return:
tier0_i486.so => ./tier0_i486.so
vstdlib_i486.so => ./vstdlib_i486.so
or
tier0_i486.so => ../../bin/tier0_i486.so
vstdlib_i486.so => ../../bin/vstdlib_i486.so
Is there a problem with doing this? Could it cause problems with other plugins?
Thanks,
Keeper
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ondrej Hošek
Sent: Thursday, May 03, 2007 1:20 PM
To: [email protected]
Subject: Re: [hlcoders] hl2mp fresh source compilation for linux crashing on
startup
(If any Valve people are reading this: sorry, but it seems you screwed
up slightly on the Makefile generation... I'll Bugzillize this straight
away.)
You can probably see the absolute link paths in the list
("/home/johnt/..."). They are evil; srcds crashed on me too before I got
them relativised.
Change the following line in the Makefile:
LDFLAGS="-lm -ldl $(GAME_DIR)/bin/tier0_i486.so
$(GAME_DIR)/bin/vstdlib_i486.so mathlib_i486.a choreoobjects_i486.a
tier1_i486.a"
into:
LDFLAGS="-lm -ldl tier0_i486.so vstdlib_i486.so mathlib_i486.a
choreoobjects_i486.a tier1_i486.a"
Do a "rm server_i486.so" and run make. Once it's done, check "ldd
server_i486.so" again. It should show lines like this:
tier0_i486.so => not found
vstdlib_i486.so => not found
If it does, all is good. (There must be no absolute path in front of
their names.) The dynlinker might not be able to find the two libs now,
but the Source engine will make sure they are available and loadable in
due time. (It did in my case.)
Good luck with your progress,
~~ Ondra
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders