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/
___
Bug-gnustep mailing list
Bug-gnustep@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-gnustep