From c93bdf057ac900340f7da530ddf859fd7e81a4ef Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Wed, 16 Jan 2002 18:21:14 +0000 Subject: [PATCH] Document problems with linking libraries compiled with GCC. --- etc/PROBLEMS | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/etc/PROBLEMS b/etc/PROBLEMS index 022f2996007..3e17f832c95 100644 --- a/etc/PROBLEMS +++ b/etc/PROBLEMS @@ -27,6 +27,19 @@ the script). Note that this problem does not pertain to the MS-Windows port of Emacs, since it doesn't use the preprocessor to generate Makefiles. +* Building Emacs with a system compiler fails during link stage. + +This can happen if some of the libraries linked into Emacs were built +with GCC, but Emacs itself is being linked with a compiler other than +GCC. Object files compiled with GCC might need some helper functions +from libgcc.a, the library which comes with GCC, but the system +compiler does not instruct the linker to search libgcc.a during the +link stage. + +A solution is to link with GCC, like this: + + make CC=gcc + * Building the MS-Windows port with Cygwin GCC can fail. Emacs may not build using recent Cygwin builds of GCC, such as Cygwin -- 2.39.5