1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-02-07 20:54:32 +00:00

Document problems with linking libraries compiled with GCC.

This commit is contained in:
Eli Zaretskii 2002-01-16 18:21:14 +00:00
parent adb92798f7
commit c93bdf057a

View File

@ -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