Skip to content

Commit

Permalink
Add c99 CFLAG option for JDK21 p/zLinux natives
Browse files Browse the repository at this point in the history
Signed-off-by: Joe deKoning <joe_dekoning@ca.ibm.com>
  • Loading branch information
jdekonin committed Aug 24, 2023
1 parent 6ae7d47 commit 5c09326
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions jck/jtrunner/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,17 @@ CC=gcc
CFLAGS=-fPIC -I$(SOLARIS_PATH) -I$(LINUX_PATH) -I$(SRC_PATH)
LDFLAGS=-shared

# need to add c99 flags for p/zlinux as of JDK21
ifeq ($(JDK_VERSION),21)
ifeq ($(OS),linux)
ifeq ($(ARCH),ppc64le)
CFLAGS+=-std=gnu99
else ifeq ($(ARCH),s390x)
CFLAGS+=-std=gnu99
endif
endif
endif

ifeq ($(OS),osx)
CC=gcc
ifeq ($(ARCH),arm64)
Expand Down

0 comments on commit 5c09326

Please sign in to comment.