bug-gnustep
[Top][All Lists]
Advanced

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

[bug #42650] Tools are linked with unnecessary libraries


From: Yavor Doganov
Subject: [bug #42650] Tools are linked with unnecessary libraries
Date: Sun, 29 Jun 2014 22:53:23 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36

URL:
  <http://savannah.gnu.org/bugs/?42650>

                 Summary: Tools are linked with unnecessary libraries
                 Project: GNUstep
            Submitted by: yavor
            Submitted on: Mon 30 Jun 2014 01:53:23 AM EEST
                Category: Base/Foundation
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

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.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Mon 30 Jun 2014 01:53:23 AM EEST  Name: avoid-tools-extra-linkage.patch 
Size: 874B   By: yavor

<http://savannah.gnu.org/bugs/download.php?file_id=31639>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?42650>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]