Skip to content

Commit 137abe7

Browse files
authored
Fix compilation on GCC v10 and higher
GCC compiler v10 and higher throws exception "Multiple definitions of ... First defined here". He we telling compiler to ignore this error, otherwise the software will not compile.
1 parent 63e1260 commit 137abe7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ LIBDIR = ../../cfitsio/lib
2727

2828
# standard usage
2929
# recently added -std=c99 after a bug report
30-
COPTS = -funroll-loops -O3 -ansi -std=c99 -pedantic-errors -Wall -I$(CFITSIOINCDIR) -D_GNU_SOURCE
30+
COPTS = -funroll-loops -fcommon -O3 -ansi -std=c99 -pedantic-errors -Wall -I$(CFITSIOINCDIR) -D_GNU_SOURCE
3131
LIBS = -L$(LIBDIR) -lm -lcfitsio
3232

3333
# compiler

0 commit comments

Comments
 (0)