xfree86 build problem
Quoted 6 lines · Grant Grundler
Quoted 3 lines · [email protected] wrote:
True, but it's not recommended. The reason being that non-PIC code in a shared lib will mean lib pages with relocations can't be shared between processes should the library be loaded at a different virtual addresses.
Well, I guess either x86 doesn't have that problem,
It does.
Quoted 1 line
no one has noticed it, or no one cares (OpenGL fans?).
Possibly :-( As Ulrich mentioned, it's fairly easy to see if a shared lib can't actually be shared. "readelf -d libwhatever.so | grep DT_TEXTREL"
Quoted 8 lines
Under build-env/xc/lib/GL/glu Imakefiles
all have the following construct: (eg libtess/Imakefile)NormalLibraryTarget(tess, $(OBJS)) rm -f unshared; ln -sf . ./unsharedThe result is only .a's get built and the libGLU.so is globbed together from those. The last step fails for
__hppa__since the .o's are non-PIC.
I suppose you could build the .a lib with -fPIC as a workaround.
Signature · 1 line
Alan Modra