forked from MitchBradley/cforth
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GCC 10 decided to turn on -fno-common by default [1] which fails the linking in case the same symbol is defined by multiple object files. We do trigger one such case, by accident: /usr/bin/ld: dictfile.o:src/cforth/dictfile.c:7: multiple definition of `variables'; meta.o:src/cforth/meta.c:14: first defined here collect2: error: ld returned 1 exit status Let's take this opportinity to make symbols that are of not of interest to other object files static, at least for the two files that collided here. [1] https://gcc.gnu.org/gcc-10/porting_to.html
- Loading branch information
1 parent
ebb0470
commit d613070
Showing
2 changed files
with
68 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters