Heya over there,

while updating the gnustep-gui package in lunar-linux
I found the following problem with your build scripts
(current svn rev 37027).

When the gnustep-gui library is already installed
on the system building, some module are linked against
the system libgnustep-gui.so instead of the one just
built. This breaks in case the system version is broken.

reproduce:
1. corrupt your system library, e.g. via`echo > /usr/lib/libgnustep-gui.so`
2. try to build gnustep-gui via `./configure; make`

The attached patch fixes the problem at hand, but
I'm not sure the underlying logical mistake is not
around anywhere else.


v4hn,
lunar-linux developer
Index: Printing/GSCUPS/GNUmakefile.preamble
===================================================================
--- Printing/GSCUPS/GNUmakefile.preamble        (revision 37046)
+++ Printing/GSCUPS/GNUmakefile.preamble        (working copy)
@@ -21,7 +21,7 @@
 ADDITIONAL_LDFLAGS += $(GSCUPS_LDFLAGS)
 
 # Additional library directories the linker should search
-ADDITIONAL_LIB_DIRS += -L../../Source/$(GNUSTEP_OBJ_DIR)
+ADDITIONAL_LIB_DIRS := -L../../Source/$(GNUSTEP_OBJ_DIR) $(ADDITIONAL_LIB_DIRS)
 
 # Additional libraries
 
Index: Printing/GSLPR/GNUmakefile.preamble
===================================================================
--- Printing/GSLPR/GNUmakefile.preamble (revision 37046)
+++ Printing/GSLPR/GNUmakefile.preamble (working copy)
@@ -21,7 +21,7 @@
 ADDITIONAL_LDFLAGS += 
 
 # Additional library directories the linker should search
-ADDITIONAL_LIB_DIRS += -L../../Source/$(GNUSTEP_OBJ_DIR)
+ADDITIONAL_LIB_DIRS := -L../../Source/$(GNUSTEP_OBJ_DIR) $(ADDITIONAL_LIB_DIRS)
 
 # Additional libraries
 
Index: Tools/GNUmakefile.preamble
===================================================================
--- Tools/GNUmakefile.preamble  (revision 37046)
+++ Tools/GNUmakefile.preamble  (working copy)
@@ -29,7 +29,7 @@
 # ADDITIONAL_LDFLAGS +=
 
 # Additional library directories the linker should search
-ADDITIONAL_LIB_DIRS += -L../Source/$(GNUSTEP_OBJ_DIR) 
-L../Model/$(GNUSTEP_OBJ_DIR)
+ADDITIONAL_LIB_DIRS := -L../Source/$(GNUSTEP_OBJ_DIR) 
-L../Model/$(GNUSTEP_OBJ_DIR) $(ADDITIONAL_LIB_DIRS)
 
 # Additional libraries when linking tools
 gpbs_TOOL_LIBS += -lgnustep-gui $(SYSTEM_LIBS)

Attachment: pgpTHwFbDXoO1.pgp
Description: PGP signature

_______________________________________________
Bug-gnustep mailing list
Bug-gnustep@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to