[xorg-bugzilla-noise] [Bug 1466] [PATCH] selectable with/without PIC to build libGL on i386 Linux

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Sep 25 22:19:27 UTC 2004


Please do not reply to this email: if you want to comment on the bug, go to          
the URL shown below and enter yourcomments there.   
 
https://freedesktop.org/bugzilla/show_bug.cgi?id=1466        
   

ajax at nwnk.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #968 is|0                           |1
           obsolete|                            |




------- Additional Comments From ajax at nwnk.net  2004-09-25 15:19 -------
Created an attachment (id=970)
 --> (https://freedesktop.org/bugzilla/attachment.cgi?id=970&action=view)
libglx-pic-overridable.patch

the first patch is broken.  BuildLibGlxWithoutPIC is always defined, so the
'#ifndef BuildLibGlxWithoutPIC' stanza never has any effect.  attached patch
does it better, and distros may force a BuildLibGlxWithoutPIC setting in
host.def.

i'd also make a note at this point that the Debian policy is broken:

"The shared version of a library must be compiled with -fPIC, and the static
version must not be."

this _will_ fail on amd64 when someone builds a DSO that links in code from a
static library.  on amd64 any object file that may find it's way into a DSO
must be compiled with -fPIC.  this is true of several other architectures, hppa
and (i think) ia64 at least.        
   
   
--         
Configure bugmail: https://freedesktop.org/bugzilla/userprefs.cgi?tab=email       
   
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the xorg-bugzilla-noise mailing list