src/share/tools/hsdis/Makefile

changeset 9572
624a0741915c
parent 9493
882a55369341
parent 9226
80768a44078a
     1.1 --- a/src/share/tools/hsdis/Makefile	Sat Dec 15 09:57:22 2018 -0800
     1.2 +++ b/src/share/tools/hsdis/Makefile	Thu Apr 04 17:56:29 2019 +0800
     1.3 @@ -105,12 +105,21 @@
     1.4  endif
     1.5  CFLAGS		+= $(CFLAGS/$(ARCH))
     1.6  CFLAGS		+= -fPIC
     1.7 +ifeq ($(ARCH), mips64)
     1.8 +CPUINFO = $(shell cat /proc/cpuinfo)
     1.9 +ifneq ($(findstring Loongson,$(CPUINFO)),)
    1.10 +CFLAGS += -DLOONGSON
    1.11 +endif
    1.12 +endif
    1.13  OS		= linux
    1.14  LIB_EXT		= .so
    1.15  CC 		= gcc
    1.16  endif
    1.17  CFLAGS		+= -O
    1.18  DLDFLAGS	+= -shared
    1.19 +ifeq ($(ARCH), mips64)
    1.20 +DLDFLAGS	+= -Wl,-z,noexecstack
    1.21 +endif
    1.22  LDFLAGS         += -ldl
    1.23  OUTFLAGS	+= -o $@
    1.24  else

mercurial