]> git.donarmstrong.com Git - debian/debian-policy.git/commitdiff
[AMENDMENT 02/05/2003] encourage packagers to systematically prevent
authorManoj Srivastava <srivasta@debian.org>
Thu, 16 Jun 2005 05:40:37 +0000 (05:40 +0000)
committerManoj Srivastava <srivasta@debian.org>
Thu, 16 Jun 2005 05:40:37 +0000 (05:40 +0000)
Author: srivasta
Date: 2003/06/07 17:47:25
[AMENDMENT 02/05/2003] encourage packagers to systematically prevent
mis-linked libraries

git-archimport-id: srivasta@debian.org--etch/debian-policy--devel--3.0--patch-231

debian/changelog
policy.sgml

index e790f75d539c8d2e0e2b26b4d37118735845177c..f8f1c97dafac099363e8c329c43b6551443679e6 100644 (file)
@@ -11,7 +11,9 @@ debian-policy (3.6.0) unstable; urgency=low
                                                            closes: Bug#174982
   * Added LANG=C before the debiandoc2X invocations, this ensures that the
     resulting documents do not get converted to the locale on the building
-    machine.                                               closes: Bug#175064
+    machine.  This answers some of the issues mentioned in  Bug#175064
+  * [AMENDMENT 02/05/2003] encourage packagers to systematically prevent
+    mis-linked libraries                                   closes: Bug#191369
 
  -- 
 
index a98b2309e0169dae4add9a24cee89509c7b6df2d..e19382911e8eb4e4f2a8888542806024a87fa731 100644 (file)
@@ -6430,6 +6430,22 @@ endif
          the library compatible with LinuxThreads.
        </p>
 
+                                                                                
+         <p>                                                                    
+          Although not enforced by the build tools, shared libraries           
+          must be linked against all libraries that they use symbols from      
+          in the same way that binaries are.  This ensures the correct         
+          functioning of the <ref id="sharedlibs-shlibdeps">shlibs</ref>       
+          system and guarantees that all libraries can be safely opened        
+          with <tt>dlopen()</tt>.  Packagers may wish to use the gcc           
+          option <tt>-Wl,-z,defs</tt> when building a shared library.          
+          Since this option enforces symbol resolution at build time,          
+          a missing library reference will be caught early as a fatal          
+          build error.                                                         
+        </p>                                                                   
+                                                                               
+
+
        <p>
          All installed shared libraries should be stripped with
          <example compact="compact">