equal
deleted
inserted
replaced
1 # |
1 # |
2 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. |
2 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. |
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 # |
4 # |
5 # This code is free software; you can redistribute it and/or modify it |
5 # This code is free software; you can redistribute it and/or modify it |
6 # under the terms of the GNU General Public License version 2 only, as |
6 # under the terms of the GNU General Public License version 2 only, as |
7 # published by the Free Software Foundation. Oracle designates this |
7 # published by the Free Software Foundation. Oracle designates this |
30 ifneq ($(OPENJDK_TARGET_OS), windows) |
30 ifneq ($(OPENJDK_TARGET_OS), windows) |
31 LIBJ2GSS_SRC := $(TOPDIR)/src/java.security.jgss/share/native/libj2gss \ |
31 LIBJ2GSS_SRC := $(TOPDIR)/src/java.security.jgss/share/native/libj2gss \ |
32 $(TOPDIR)/src/java.security.jgss/$(OPENJDK_TARGET_OS_TYPE)/native/libj2gss \ |
32 $(TOPDIR)/src/java.security.jgss/$(OPENJDK_TARGET_OS_TYPE)/native/libj2gss \ |
33 # |
33 # |
34 |
34 |
35 $(eval $(call SetupNativeCompilation,BUILD_LIBJ2GSS, \ |
35 $(eval $(call SetupNativeCompilation, BUILD_LIBJ2GSS, \ |
36 LIBRARY := j2gss, \ |
36 NAME := j2gss, \ |
37 OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
37 OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
38 SRC := $(LIBJ2GSS_SRC), \ |
38 SRC := $(LIBJ2GSS_SRC), \ |
39 OPTIMIZATION := LOW, \ |
39 OPTIMIZATION := LOW, \ |
40 CFLAGS := $(CFLAGS_JDKLIB) $(addprefix -I, $(LIBJ2GSS_SRC)) \ |
40 CFLAGS := $(CFLAGS_JDKLIB) $(addprefix -I, $(LIBJ2GSS_SRC)) \ |
41 $(LIBJAVA_HEADER_FLAGS) \ |
41 $(LIBJAVA_HEADER_FLAGS) \ |
72 endif |
72 endif |
73 |
73 |
74 ifneq ($(BUILD_LIBKRB5_NAME), ) |
74 ifneq ($(BUILD_LIBKRB5_NAME), ) |
75 # libosxkrb5 needs to call deprecated krb5 APIs so that java |
75 # libosxkrb5 needs to call deprecated krb5 APIs so that java |
76 # can use the native credentials cache. |
76 # can use the native credentials cache. |
77 $(eval $(call SetupNativeCompilation,BUILD_LIBKRB5, \ |
77 $(eval $(call SetupNativeCompilation, BUILD_LIBKRB5, \ |
78 LIBRARY := $(BUILD_LIBKRB5_NAME), \ |
78 NAME := $(BUILD_LIBKRB5_NAME), \ |
79 OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
79 OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
80 SRC := $(BUILD_LIBKRB5_SRC), \ |
80 SRC := $(BUILD_LIBKRB5_SRC), \ |
81 OPTIMIZATION := LOW, \ |
81 OPTIMIZATION := LOW, \ |
82 CFLAGS := $(CFLAGS_JDKLIB) \ |
82 CFLAGS := $(CFLAGS_JDKLIB) \ |
83 $(addprefix -I, $(BUILD_LIBKRB5_SRC)) \ |
83 $(addprefix -I, $(BUILD_LIBKRB5_SRC)) \ |