summaryrefslogtreecommitdiff
path: root/databases/postgresql-plv8js/files/patch-Makefile
blob: a22c52778e3d30e06e4f779014d696e3dbdfe1a1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--- Makefile.orig	2024-09-08 02:08:55 UTC
+++ Makefile
@@ -36,19 +36,8 @@ SHLIB_LINK += -Ldeps/v8-cmake/build
 
 SHLIB_LINK += -Ldeps/v8-cmake/build
 
-all: v8 $(OBJS)
+all: $(OBJS)
 
-# For some reason, this solves parallel make dependency.
-plv8_config.h plv8.so: v8
-
-deps/v8-cmake/README.md:
-	@git submodule update --init --recursive
-
-deps/v8-cmake/build/libv8_libbase.a: deps/v8-cmake/README.md
-	@cd deps/v8-cmake && mkdir -p build && cd build && cmake -Denable-fPIC=ON -DCMAKE_BUILD_TYPE=Release ../ && make -j $(NUMPROC)
-
-v8: deps/v8-cmake/build/libv8_libbase.a
-
 # enable direct jsonb conversion by default
 CCFLAGS += -DJSONB_DIRECT_CONVERSION
 
@@ -74,7 +63,7 @@ endif
 	REGRESS += bigint_graceful
 endif
 
-SHLIB_LINK += -lv8_base_without_compiler -lv8_compiler -lv8_snapshot -lv8_inspector -lv8_libplatform -lv8_base_without_compiler -lv8_libsampler -lv8_torque_generated -lv8_libbase
+SHLIB_LINK += -lv8_libbase -lv8 -lv8_libplatform 
 
 OPTFLAGS = -std=c++17 -fno-rtti -O2
 CCFLAGS += -Wall $(OPTFLAGS)