File order matters to the linker. GCC demands this order.

This commit is contained in:
dancoffman 2022-11-07 17:08:21 -08:00
parent fec7acb87e
commit 72f696e119
No known key found for this signature in database
GPG Key ID: 47B1F53E36A9B3CC
3 changed files with 5 additions and 5 deletions

View File

@ -16,8 +16,8 @@
"<!@(node -p \"require('node-addon-api').include\")"
],
"libraries": [
"<(module_root_dir)/libblst.a",
"<(module_root_dir)/c_kzg_4844.o"
"<(module_root_dir)/c_kzg_4844.o",
"<(module_root_dir)/libblst.a"
],
"dependencies": ["<!(node -p \"require('node-addon-api').gyp\")"],
"defines": ["NAPI_DISABLE_CPP_EXCEPTIONS"],

View File

@ -16,8 +16,8 @@
"<!@(node -p \"require('node-addon-api').include\")"
],
"libraries": [
"<(module_root_dir)/c_kzg_4844.o",
"<(module_root_dir)/../../lib/libblst.a"
"<(module_root_dir)/../../lib/libblst.a",
"<(module_root_dir)/c_kzg_4844.o"
],
"dependencies": ["<!(node -p \"require('node-addon-api').gyp\")"],
"defines": ["NAPI_DISABLE_CPP_EXCEPTIONS"]

View File

@ -1,6 +1,6 @@
{
"name": "c-kzg",
"version": "0.0.7",
"version": "0.0.8",
"description": "NodeJS bindings for C-KZG",
"author": "Dan Coffman",
"license": "MIT",