@hitrading/ctp-node 4.1.0 → 4.1.1-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [4.1.1-rc.1](https://github.com/hitrading/ctp-node/compare/v4.1.0...v4.1.1-rc.1) (2026-11-13)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **build:** Linux 预编译件按库名链接 CTP 动态库,只经 $ORIGIN 解析 ([4de6bdd](https://github.com/hitrading/ctp-node/commit/4de6bdd0b921d271f56112b6ec5f773569d5bdfc))
7
+
1
8
  # [4.1.0](https://github.com/hitrading/ctp-node/compare/v4.0.1...v4.1.0) (2026-10-12)
2
9
 
3
10
 
package/binding.gyp CHANGED
@@ -48,11 +48,14 @@
48
48
  ]
49
49
  }],
50
50
  ["OS=='linux'", {
51
+ # The CTP .so files carry no SONAME, so linking them by path would bake
52
+ # that build-host path into DT_NEEDED. Link by bare file name instead and
53
+ # resolve only via $ORIGIN (the .so files sit next to the addon).
54
+ "library_dirs": [ "<(module_root_dir)/ctpsdk/linux" ],
51
55
  "libraries": [
52
- "<(module_root_dir)/ctpsdk/linux/thostmduserapi_se.so",
53
- "<(module_root_dir)/ctpsdk/linux/thosttraderapi_se.so",
54
- "-Wl,-rpath,'$$ORIGIN'",
55
- "-Wl,-rpath,<(module_root_dir)/ctpsdk/linux"
56
+ "-l:thostmduserapi_se.so",
57
+ "-l:thosttraderapi_se.so",
58
+ "-Wl,-rpath,'$$ORIGIN'"
56
59
  ],
57
60
  "cflags_cc": [ "-std=c++17", "-fexceptions" ],
58
61
  "copies": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hitrading/ctp-node",
3
- "version": "4.1.0",
3
+ "version": "4.1.1-rc.1",
4
4
  "description": "High-performance, type-safe CTP (Chinese futures) binding for Node.js",
5
5
  "keywords": [
6
6
  "ctp",