ports/databases/postgresql-plv8js/files/patch-Makefile
Kevin Bowling 7f32cf3e0f databases/postgresql-plv8js: Update to 3.2.3
Adds pgsql 17 support

PR:		285732
Approved by:	mizhka (maintainer)
2025-03-28 17:13:13 -07:00

32 lines
1 KiB
Text

--- 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)