瀏覽代碼

centos7: Atcual path for libstdc++.a

Key Networks 2 年之前
父節點
當前提交
e6766b8448
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      build/binding.gyp.patch
  2. 1 1
      build/build.sh

+ 1 - 1
build/binding.gyp.patch

@@ -4,7 +4,7 @@
        ],
        "cflags+": ["-Wno-cast-function-type"],
        "include_dirs+": ["<!(node -e \"require('nan')\")"],
-+      "libraries": ["/usr/lib/gcc/x86_64-redhat-linux/4.8.2/32/libstdc++.a"],
++      "libraries": ["/usr/lib/gcc/x86_64-redhat-linux/4.8.2/libstdc++.a"],
        "dependencies": ["libargon2"],
        "configurations": {
          "Debug": {

+ 1 - 1
build/build.sh

@@ -26,7 +26,7 @@ BINDINGGYP='node_modules/argon2/binding.gyp'
 
 NODE_VER='v16'
 
-if [ ! -f /usr/lib/gcc/x86_64-redhat-linux/4.8.2/32/libstdc++.a ]; then
+if [ ! -f /usr/lib/gcc/x86_64-redhat-linux/4.8.2/libstdc++.a ]; then
   echo "You must install libstdc++-static"
   exit 1
 fi