View Issue Details

IDProjectCategoryView StatusLast Update
0000820Double CommanderDefaultpublic2017-09-04 08:26
Reporterginggs Assigned ToAlexx2000  
PrioritynormalSeveritytrivialReproducibilityN/A
Status closedResolutionfixed 
ProjectionnoneETAnone 
Product Version0.5.8Product Build5390 
Target Version0.5.9Fixed in Version0.5.9 
Summary0000820: Please link with --as-needed
DescriptionLinking with the --as-needed flag will eliminate the shlibdeps warnings below.
The attached patch adds '--as-needed' to LinkerOptions in src/doublecmd.lpi.

dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/doublecmd-gtk/usr/lib/doublecmd/doublecmd was not linked against libgmodule-2.0.so.0 (it uses none of the library's symbols)
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/doublecmd-qt/usr/lib/doublecmd/doublecmd was not linked against libgmodule-2.0.so.0 (it uses none of the library's symbols)
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/doublecmd-qt/usr/lib/doublecmd/doublecmd was not linked against libgthread-2.0.so.0 (it uses none of the library's symbols)
TagsNo tags attached.
Attached Files
link-with-as-needed.patch (306 bytes)   
--- a/src/doublecmd.lpi
+++ b/src/doublecmd.lpi
@@ -182,7 +182,7 @@
           </SearchPaths>
           <Conditionals Value="if (TargetOS = 'linux') then
 begin
-  LinkerOptions += ' -z relro';
+  LinkerOptions += ' -z relro --as-needed';
 end;
 
 if LCLWidgetType &lt;> GetIDEValue('LCLWidgetType') then
link-with-as-needed.patch (306 bytes)   
Fixed in Revision5439
Operating systemLinux
WidgetsetGTK2
Architecture64-bit

Activities

Issue History

Date Modified Username Field Change
2014-01-19 12:50 ginggs New Issue
2014-01-19 12:50 ginggs File Added: link-with-as-needed.patch
2014-01-19 15:08 Alexx2000 Assigned To => Alexx2000
2014-01-19 15:08 Alexx2000 Status new => assigned
2014-01-19 15:08 Alexx2000 Target Version => 0.5.9
2014-01-19 15:11 Alexx2000 Fixed in Revision => 5439
2014-01-19 15:11 Alexx2000 Status assigned => resolved
2014-01-19 15:11 Alexx2000 Fixed in Version => 0.5.9
2014-01-19 15:11 Alexx2000 Resolution open => fixed
2017-09-04 08:26 Alexx2000 Status resolved => closed