Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compiling for gcc10 and above #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rules.mak.src
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ DIR_ROOT_BUILDUTIL:= $(DIR_ROOT)/buildutil
# ------------------------------------------------------------------------------
#
CC := $(shell which gcc)
CFLAGS := -O2 -w -ansi -D_POSIX_SOURCE $(ENDIAN_FLAG) $(NBIS_JASPER_FLAG) $(NBIS_OPENJP2_FLAG) $(NBIS_PNG_FLAG) $(ARCH_FLAG)
CFLAGS := -O2 -w -ansi -D_POSIX_SOURCE -fcommon $(ENDIAN_FLAG) $(NBIS_JASPER_FLAG) $(NBIS_OPENJP2_FLAG) $(NBIS_PNG_FLAG) $(ARCH_FLAG)
#CFLAGS := -g $(ENDIAN_FLAG) $(NBIS_JASPER_FLAG) $(NBIS_PNG_FLAG) $(ARCH_FLAG)
CDEFS :=
CCC := $(CC) $(CFLAGS) $(CDEFS)
Expand Down
2 changes: 1 addition & 1 deletion rules_msys.mak.src
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ DIR_ROOT_BUILDUTIL:= $(DIR_ROOT)/buildutil
# ------------------------------------------------------------------------------
#
CC := gcc
CFLAGS := -O2 -w -ansi -DOPJ_STATIC -D_POSIX_SOURCE -DNO_FORK_AND_EXECL $(ENDIAN_FLAG) $(NBIS_JASPER_FLAG) $(NBIS_OPENJP2_FLAG) $(MSYS_FLAG) $(NBIS_PNG_FLAG) $(ARCH_FLAG)
CFLAGS := -O2 -w -ansi -DOPJ_STATIC -D_POSIX_SOURCE -DNO_FORK_AND_EXECL -fcommon $(ENDIAN_FLAG) $(NBIS_JASPER_FLAG) $(NBIS_OPENJP2_FLAG) $(MSYS_FLAG) $(NBIS_PNG_FLAG) $(ARCH_FLAG)
CDEFS :=
CCC := $(CC) $(CFLAGS) $(CDEFS)
LDFLAGS := $(ARCH_FLAG)
Expand Down
2 changes: 1 addition & 1 deletion rules_superdome.mak.src
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ DIR_ROOT_BUILDUTIL:= $(DIR_ROOT)/buildutil
# ------------------------------------------------------------------------------
#
CC := $(shell which cc)
CFLAGS := +O3 -D _POSIX_SOURCE -D TARGET_OS -b $(ENDIAN_FLAG) $(NBIS_JASPER_FLAG) $(NBIS_OPENJPEG_FLAG) $(NBIS_PNG_FLAG) $(ARCH_FLAG)
CFLAGS := +O3 -fcommon -D _POSIX_SOURCE -D TARGET_OS -b $(ENDIAN_FLAG) $(NBIS_JASPER_FLAG) $(NBIS_OPENJPEG_FLAG) $(NBIS_PNG_FLAG) $(ARCH_FLAG)
CDEFS :=
CCC := $(CC) $(CFLAGS) $(CDEFS)
LDFLAGS := $(ARCH_FLAG)
Expand Down