bugGNUstep - Bugs: bug #42650, Tools are linked with unnecessary...

Group
 
 

bug #42650: Tools are linked with unnecessary libraries

Submitter:  Yavor Doganov <yavor>
Submitted:  Sun 29 Jun 2014 10:53:23 PM UTC
   
 
Category:  Base/Foundation Severity:  3 - Normal
Item Group:  Bug Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 13 Jul 2014 07:24:50 AM UTC, comment #1: 

Patch applied .. thanks.

Richard Frith-Macdonald <CaS>
Group Member
Sun 29 Jun 2014 10:53:23 PM UTC, original submission:  

All of the Base tools are being linked with a lot of libraries they don't need:

gcc  -rdynamic     -shared-libgcc  -pthread -fexceptions -fgnu-runtime -o obj/make_strings \
                ./obj/make_strings.obj/make_strings.m.o ./obj/make_strings.obj/SourceEntry.m.o ./obj/make_strings.obj/StringsEntry.m.o ./obj/make_strings.obj/StringsFile.m.o \
                  -L../../Source/./obj    -L/home/yavor/GNUstep/Library/Libraries -L/usr/local/lib -L/usr/lib   -L/usr/local/lib -L/usr/local/lib -L/usr/lib -L/usr/lib/x86_64-linux-gnu  -L/usr/local/lib -L/usr/local/lib -L/usr/lib -L/usr/lib/x86_64-linux-gnu    -lgnustep-base    -lobjc   -lavahi-common -lavahi-client  -lgnutls   -lgcrypt -lxslt -L/usr/lib -lxml2 -lffi   -lrt -ldl  -lpthread -lz -licui18n -licuuc -licudata  -lavahi-common -lavahi-client  -lgnutls   -lgcrypt -lxslt -L/usr/lib -lxml2 -lffi   -lrt -ldl  -lpthread -lz -licui18n -licuuc -licudata  -lm


This happens because CONFIG_SYSTEM_LIBS is defined in config.mak (as it should; the Base library must link with all these libraries) and it automatically applies for the tools -- their makefiles include config.mak.  The attached patch fixes this.  Please note that this bug is independent to Bug #42423, which is far more serious because the same thing happens to every package that uses GNUstep Base.

Yavor Doganov <yavor>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by CaS (Posted a comment)
  • -email is unavailable- added by yavor (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-07-13 CaS StatusNone Fixed
        Open/ClosedOpen Closed
    2014-06-29 yavor Attached File- Added avoid-tools-extra-linkage.patch, #31639

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code