bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#12047: 24.1.50; configure fails on Gentoo FreeBSD


From: Ulrich Mueller
Subject: bug#12047: 24.1.50; configure fails on Gentoo FreeBSD
Date: Fri, 27 Jul 2012 09:36:48 +0200

> (Another question is why crtbegin.o and crtend.o are needed for
> linking on FreeBSD, in the first place? Emacs builds and runs here
> without apparent problems, even if linked without these files.)

Coming back to this. After talking to the Gentoo BSD team, I've now
dropped crtbegin.o and crtend.o from linking on FreeBSD in the
Gentoo package.

See attached patch. Tested on Gentoo FreeBSD 9.0 and on (vanilla)
FreeBSD 7.0. It builds and runs just fine.

--- emacs-orig/ChangeLog
+++ emacs/ChangeLog
@@ -1,3 +1,8 @@
+2012-07-27  Ulrich Müller  <address@hidden>
+
+       * configure.ac (LIB_STANDARD, START_FILES): On FreeBSD, don't
+       include crtbegin.o and crtend.o in the link (Bug#12047).
+
 2012-07-17  Dmitry Antipov  <address@hidden>
 
        Fix toolkit configuration report.
--- emacs-orig/configure.ac
+++ emacs/configure.ac
@@ -987,8 +987,8 @@
     START_FILES='pre-crt0.o'
     ;;
   freebsd )
-    LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
-    START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o 
$(CRT_DIR)/crtbegin.o'
+    LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
+    START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
     SYSTEM_TYPE=berkeley-unix
     ;;
   gnu-linux | gnu-kfreebsd )

reply via email to

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