31 |
31 |
32 ifeq (, $(filter $(OPENJDK_TARGET_OS), macosx aix)) |
32 ifeq (, $(filter $(OPENJDK_TARGET_OS), macosx aix)) |
33 $(eval $(call SetupNativeCompilation,BUILD_LIBSCTP, \ |
33 $(eval $(call SetupNativeCompilation,BUILD_LIBSCTP, \ |
34 LIBRARY := sctp, \ |
34 LIBRARY := sctp, \ |
35 OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
35 OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
36 SRC := $(JDK_TOPDIR)/src/jdk.sctp/$(OPENJDK_TARGET_OS_TYPE)/native/libsctp, \ |
36 SRC := $(TOPDIR)/src/jdk.sctp/$(OPENJDK_TARGET_OS_TYPE)/native/libsctp, \ |
37 OPTIMIZATION := LOW, \ |
37 OPTIMIZATION := LOW, \ |
38 CFLAGS := $(CFLAGS_JDKLIB) \ |
38 CFLAGS := $(CFLAGS_JDKLIB) \ |
39 -I $(JDK_TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS_TYPE)/native/libnio/ch \ |
39 -I $(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS_TYPE)/native/libnio/ch \ |
40 -I $(JDK_TOPDIR)/src/java.base/share/native/libnio/ch \ |
40 -I $(TOPDIR)/src/java.base/share/native/libnio/ch \ |
41 $(addprefix -I, $(call FindSrcDirsForLib, java.base, net)) \ |
41 $(addprefix -I, $(call FindSrcDirsForLib, java.base, net)) \ |
42 $(LIBJAVA_HEADER_FLAGS) \ |
42 $(LIBJAVA_HEADER_FLAGS) \ |
43 -I$(SUPPORT_OUTPUTDIR)/headers/jdk.sctp \ |
43 -I$(SUPPORT_OUTPUTDIR)/headers/jdk.sctp \ |
44 -I$(SUPPORT_OUTPUTDIR)/headers/java.base, \ |
44 -I$(SUPPORT_OUTPUTDIR)/headers/java.base, \ |
45 MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libsctp/mapfile-vers, \ |
45 MAPFILE := $(TOPDIR)/make/mapfiles/libsctp/mapfile-vers, \ |
46 LDFLAGS := $(LDFLAGS_JDKLIB) \ |
46 LDFLAGS := $(LDFLAGS_JDKLIB) \ |
47 $(call SET_SHARED_LIBRARY_ORIGIN), \ |
47 $(call SET_SHARED_LIBRARY_ORIGIN), \ |
48 LIBS_unix := -lnio -lnet -ljava -ljvm, \ |
48 LIBS_unix := -lnio -lnet -ljava -ljvm, \ |
49 LIBS_linux := -lpthread $(LIBDL), \ |
49 LIBS_linux := -lpthread $(LIBDL), \ |
50 LIBS_solaris := -lsocket -lc, \ |
50 LIBS_solaris := -lsocket -lc, \ |