aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2002-01-16 18:21:14 +0000
committerEli Zaretskii2002-01-16 18:21:14 +0000
commitc93bdf057ac900340f7da530ddf859fd7e81a4ef (patch)
tree2614a9edb778a464310fe6d14fee7fdda4c7cb7e
parentadb92798f785015ea6c9cca506d9e6dc1291ffae (diff)
downloademacs-c93bdf057ac900340f7da530ddf859fd7e81a4ef.tar.gz
emacs-c93bdf057ac900340f7da530ddf859fd7e81a4ef.zip
Document problems with linking libraries compiled with GCC.
-rw-r--r--etc/PROBLEMS13
1 files changed, 13 insertions, 0 deletions
diff --git a/etc/PROBLEMS b/etc/PROBLEMS
index 022f2996007..3e17f832c95 100644
--- a/etc/PROBLEMS
+++ b/etc/PROBLEMS
@@ -27,6 +27,19 @@ the script).
27Note that this problem does not pertain to the MS-Windows port of 27Note that this problem does not pertain to the MS-Windows port of
28Emacs, since it doesn't use the preprocessor to generate Makefiles. 28Emacs, since it doesn't use the preprocessor to generate Makefiles.
29 29
30* Building Emacs with a system compiler fails during link stage.
31
32This can happen if some of the libraries linked into Emacs were built
33with GCC, but Emacs itself is being linked with a compiler other than
34GCC. Object files compiled with GCC might need some helper functions
35from libgcc.a, the library which comes with GCC, but the system
36compiler does not instruct the linker to search libgcc.a during the
37link stage.
38
39A solution is to link with GCC, like this:
40
41 make CC=gcc
42
30* Building the MS-Windows port with Cygwin GCC can fail. 43* Building the MS-Windows port with Cygwin GCC can fail.
31 44
32Emacs may not build using recent Cygwin builds of GCC, such as Cygwin 45Emacs may not build using recent Cygwin builds of GCC, such as Cygwin