[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#309220: lintian: Check all shared libraries to be build with -fPIC.



Package: lintian
Version: 1.23.8
Severity: withlist
Tags: patch

Hi,

I suggest that we always check shared libs to be build using
-fPIC, and not only if they're found by the linker.

There are a few reasons for this:
- Not doing so causes build failures on a few arches.  Amd64 and
  hppa are rather strict about it.
- There is no point in making a shared object if it's non-PIC,
  since it can't be shared.

I've attached a patch for it.


Kurt

--- shared-libs.orig	2005-05-15 20:28:41.419716912 +0200
+++ shared-libs	2005-05-15 20:28:51.803138392 +0200
@@ -73,7 +73,6 @@
 	$SONAME{$file} = $1;
     } elsif (m/^\s*TEXTREL\s/o) {
 	tag "shlib-with-non-pic-code", "$file"
-	    if exists $ldso_dir{dirname($file)};
     } elsif (m/^\s*INTERP\s/) {
 	$INTERP{$file} = 1;
     } else {

Reply to: