diff --git a/plv8-2.1.0-make.patch b/plv8-2.1.0-make.patch index ef3768b..7bdf69e 100644 --- a/plv8-2.1.0-make.patch +++ b/plv8-2.1.0-make.patch @@ -23,3 +23,16 @@ index 263d070..305999c 100644 -- 2.14.3 +diff --git a/Makefile b/Makefile +index f410301..2ed035b 100644 +--- a/Makefile ++++ b/Makefile +@@ -43,7 +43,7 @@ ifndef DISABLE_DIALECT + REGRESS += dialect + endif + +-SHLIB_LINK += -lv8 ++SHLIB_LINK += -lv8 $(RPM_HACK_LDFLAGS) + ifdef V8_OUTDIR + SHLIB_LINK += -L$(V8_OUTDIR) + else diff --git a/plv8.spec b/plv8.spec index 98953a3..2b3338d 100644 --- a/plv8.spec +++ b/plv8.spec @@ -40,7 +40,11 @@ your function that is callable from SQL. %define _configure : %configure -%make_build +# rhbz#1517657 +ln -s %{_libdir}/libv8_libplatform.so.? libv8_libplatform.so +export LDFLAGS="$LDFLAGS -L$PWD" + +%make_build RPM_HACK_LDFLAGS="-L$PWD" %install @@ -64,6 +68,7 @@ your function that is callable from SQL. * Sat Dec 16 2017 Pavel Raiskup - 2.1.0-2 - fixes per pre-review by Robert-André Mauchin (rhbz#1036130) - require proper postgresql-server version +- hack for missing libv8_libplatform.so in v8-devel (rhbz#1517657) * Fri Dec 15 2017 Pavel Raiskup - 2.1.0-1 - rebase to 2.1.0