--- Comment #4 from ddenisen at altera dot com 2008-06-27 20:34 ---
Here's the answer to my question (in case somebody else has the same problem):
You have to use -fPIC for compiling the executable itself (but not the shared
objects) to fix the symbol resolution problem described here.
--- Comment #1 from belyshev at depni dot sinp dot msu dot ru 2008-03-07
19:25 ---
You need to study http://people.redhat.com/drepper/dsohowto.pdf carefully.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35499
--- Comment #2 from pinskia at gcc dot gnu dot org 2008-03-07 19:37 ---
Already controlled separately really so closing as such.
--
pinskia at gcc dot gnu dot org changed:
What|Removed |Added
--- Comment #3 from ddenisen at altera dot com 2008-03-07 19:43 ---
I did read How to write Shared Libraries and re-read PIC section a couple of
times. Could you please clarify what am I missing here?
If symbol resolution is already controlled separately, what's the flag? I
couldn't