unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#18229: LIBS vs LIBOBJS in src/Makefile.in
@ 2014-08-09 13:18 Reuben Thomas
  2014-08-09 19:46 ` Paul Eggert
  0 siblings, 1 reply; 2+ messages in thread
From: Reuben Thomas @ 2014-08-09 13:18 UTC (permalink / raw)
  To: 18229

[-- Attachment #1: Type: text/plain, Size: 1243 bytes --]

Trying to pass an extra library to configure using LIBS, as configure
--help says I can, I found it did nothing, and traced it to
src/Makefile.in, which deliberately ignores LIBS. This dates back 14 years,
and whatever it was intended to fix no longer seems to be a problem. May I
install the following patch? With the patch applied, supplying LIBS on the
configure command-line worked exactly as it should.

--- src/Makefile.in    2014-07-13 15:50:35 +0000
+++ src/Makefile.in    2014-08-09 11:34:12 +0000
@@ -44,10 +44,7 @@
 # BSD doesn't have it as a default.
 @SET_MAKE@
 MKDIR_P = @MKDIR_P@
-# Don't use LIBS.  configure puts stuff in it that either shouldn't be
-# linked with Emacs or is duplicated by the other stuff below.
-# LIBS = @LIBS@
-LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@

 lispsource = $(top_srcdir)/lisp
 lib = ../lib
@@ -388,7 +385,7 @@

 ## List of object files that make-docfile should not be told about.
 otherobj= $(TERMCAP_OBJ) $(PRE_ALLOC_OBJ) $(GMALLOC_OBJ) $(RALLOC_OBJ) \
-  $(POST_ALLOC_OBJ) $(WIDGET_OBJ) $(LIBOBJS)
+  $(POST_ALLOC_OBJ) $(WIDGET_OBJ) $(LIBS)

 ## All object files linked into temacs.  $(VMLIMIT_OBJ) should be first.
 ## (On MinGW, firstfile.o should be before vm-limit.o.)

-- 
http://rrt.sc3d.org

[-- Attachment #2: Type: text/html, Size: 1461 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#18229: LIBS vs LIBOBJS in src/Makefile.in
  2014-08-09 13:18 bug#18229: LIBS vs LIBOBJS in src/Makefile.in Reuben Thomas
@ 2014-08-09 19:46 ` Paul Eggert
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Eggert @ 2014-08-09 19:46 UTC (permalink / raw)
  To: 18229

Although I also dislike configure's mishandling of LIBS and would like 
to see it fixed, I don't think the proposed patch would work well, due 
to the funky treatment of LIBS in configure.ac.  Please look there for 
uses of SAVE_LIBS, pre_PKG_CONFIG_LIBS, PKG_CHECK_MODULES, LIBS_SYSTEM, 
LIB_PTHREAD, etc., and note that AC_CHECK_LIB etc. also futz with LIBS.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-08-09 19:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-09 13:18 bug#18229: LIBS vs LIBOBJS in src/Makefile.in Reuben Thomas
2014-08-09 19:46 ` Paul Eggert

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).