rebuild geeqie
[oi-userland.git] / components / runtime / openjdk-8 / patches / 0015-patch-hotspot_make_solaris_makefiles_jsig.make.patch
blob113d8afb67d2312d64857ee01b6b443057237ee4
1 $NetBSD: patch-hotspot_make_solaris_makefiles_jsig.make,v 1.4 2019/11/05 22:30:15 jperkin Exp $
3 GCC support.
5 --- hotspot/make/solaris/makefiles/jsig.make.orig 2019-10-16 01:41:55.000000000 +0000
6 +++ hotspot/make/solaris/makefiles/jsig.make
7 @@ -39,17 +39,27 @@ DEST_JSIG_DIZ = $(JDK_LIBDIR)/$(LI
9 LIBJSIG_MAPFILE = $(MAKEFILES_DIR)/mapfile-vers-jsig
11 +LFLAGS_JSIG += $(CFLAGS)
12 LFLAGS_JSIG += $(MAPFLAG:FILENAME=$(LIBJSIG_MAPFILE))
14 ifdef USE_GCC
15 -LFLAGS_JSIG += -D_REENTRANT
16 +LFLAGS_JSIG += -D_GNU_SOURCE -D_REENTRANT
17 else
18 LFLAGS_JSIG += -mt -xnolib
19 endif
21 # Optimize jsig lib unless it's a slowdebug build
22 ifneq ($(DEBUG_LEVEL), slowdebug)
23 + ifndef USE_GCC
24 JSIG_OPT_FLAGS = -xO4 -g
25 + endif
26 +endif
28 +# DEBUG_BINARIES overrides everything, use full -g debug information
29 +ifdef USE_GCC
30 + ifeq ($(DEBUG_BINARIES), true)
31 + JSIG_OPT_FLAGS = -g
32 + endif
33 endif
35 $(LIBJSIG): $(JSIGSRCDIR)/jsig.c $(LIBJSIG_MAPFILE)