From: Waldemar Kozaczuk <[email protected]>
Committer: Nadav Har'El <[email protected]>
Branch: master

httpserver-jvm-plugin: remove dependency on externals

This patch also makes httpserver-api tests pass
on Fedora 30.

Signed-off-by: Waldemar Kozaczuk <[email protected]>
Message-Id: <[email protected]>

---
diff --git a/modules/httpserver-jvm-plugin/Makefile b/modules/httpserver-jvm-plugin/Makefile
--- a/modules/httpserver-jvm-plugin/Makefile
+++ b/modules/httpserver-jvm-plugin/Makefile
@@ -1,5 +1,5 @@

-INCLUDES = -isystem $(miscbase)/usr/include -I$(src)/build/$(mode)/gen/include
+INCLUDES = -I$(src)/build/$(mode)/gen/include
 INCLUDES += -I../../include -I. -I../../java -I../../arch/$(ARCH) -I../..
 INCLUDES += -I$(jdkbase)/include -I$(jdkbase)/include/linux
 INCLUDES += -I../httpserver-api
@@ -25,10 +25,6 @@ endif
 ifndef OSV_BUILD_PATH
        OSV_BUILD_PATH = $(src)/build/$(mode).$(ARCH)
 endif
-miscbase = $(src)/external/$(ARCH)/misc.bin
-libs-dir = $(miscbase)/usr/lib64
-boost-libs := $(libs-dir)/libboost_system.so \
-              $(libs-dir)/libboost_filesystem.so

 # the build target executable:
 TARGET = jvm
@@ -37,18 +33,6 @@ JSON_CC_FILES := $(subst .json,.json.cc,$(subst api-doc/listings/,autogen/,$(JSO
 CPP_FILES := $(JSON_CC_FILES) $(wildcard *.cc)
 OBJ_FILES := $(addprefix obj/,$(CPP_FILES:.cc=.o))

-STATIC_LIBS = $(libs-dir)/libboost_program_options.a
-DYN_LIBS = -lpthread -ldl -L../libtools -ltools -L$(libs-dir) -lyaml-cpp $(boost-libs)
-
-ifeq ($(use_host),y)
-       DYN_LIBS += -lssl -lcrypto
-else
-       DYN_LIBS += $(libs-dir)/libssl.so.10 \
-               $(libs-dir)/libcrypto.so.10
-endif
-
-LIBS = $(DYN_LIBS) $(STATIC_LIBS)
-
 quiet = $(if $V, $1, @echo " $2"; $1)
 very-quiet = $(if $V, $1, @$1)

@@ -67,7 +51,7 @@ init:
 .PHONY: init

 $(TARGET).so: $(OBJ_FILES)
- $(call quiet, $(CXX) $(CXXFLAGS) -shared $(STATIC_LIBS) -o $@ $^ $(DYN_LIBS), LINK $@)
+       $(call quiet, $(CXX) $(CXXFLAGS) -shared -o $@ $^, LINK $@)

 ifneq ($(MAKECMDGOALS),clean)
 -include $(DEPS)

--
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osv-dev/00000000000086eeda05986376ef%40google.com.

Reply via email to