Skip to content

Commit

Permalink
Allow users to override PKG_LIBS and PKG_CFLAGS
Browse files Browse the repository at this point in the history
Closes #149
Closes #122
  • Loading branch information
jeroen committed Nov 3, 2022
1 parent 4c9f59b commit a2a3831
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
4.2.2
- Fix a sanitizer error by avoiding a broken API on NodeJS (#152)
- You can override build flags by setting V8_PKG_LIBS / V8_PKG_CFLAGS

4.2.1
- Fix a feature test for NodeJS 18 (#145)
Expand Down
7 changes: 7 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ PKG_TEST_HEADER="<v8.h>"
PKG_LIBS="-lv8 -lv8_libplatform"
PKG_CFLAGS="-I/usr/include/v8 -I/usr/include/v8-3.14"

# Allow users to override PKG_LIBS and PKG_CFLAGS
if [ "$V8_PKG_LIBS" ]; then
PKG_LIBS="$V8_PKG_LIBS"
PKG_CFLAGS="$V8_PKG_CFLAGS"
DISABLE_STATIC_LIBV8=1
fi

UNAME=`uname`
UARCH=`uname -m`

Expand Down

0 comments on commit a2a3831

Please sign in to comment.