From: Manoj Srivastava
Date: Thu, 16 Jun 2005 05:40:37 +0000 (+0000)
Subject: [AMENDMENT 02/05/2003] encourage packagers to systematically prevent
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=188f32b77879121350777dcccc5a4737df9312b1;p=debian%2Fdebian-policy.git
[AMENDMENT 02/05/2003] encourage packagers to systematically prevent
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
---
diff --git a/debian/changelog b/debian/changelog
index e790f75..f8f1c97 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -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
--
diff --git a/policy.sgml b/policy.sgml
index a98b230..e193829 100644
--- a/policy.sgml
+++ b/policy.sgml
@@ -6430,6 +6430,22 @@ endif
the library compatible with LinuxThreads.
+
+
+ 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 [shlibs]
+ system and guarantees that all libraries can be safely opened
+ with dlopen(). Packagers may wish to use the gcc
+ option -Wl,-z,defs 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.
+
+
+
+
All installed shared libraries should be stripped with