diff --git a/linux-sgx.spec b/linux-sgx.spec index 06a3850..4c34d76 100644 --- a/linux-sgx.spec +++ b/linux-sgx.spec @@ -13,16 +13,6 @@ # /usr/bin/ld: /tmp/ccWKJhwL.ltrans0.ltrans.o: relocation R_X86_64_PC32 against symbol `_Z16aesm_thread_procPv' can not be used when making a shared object; recompile with -fPIC %global _lto_cflags %nil -# The nodejs sqlite3 module will trigger a warning -# -# ERROR 0001: file '/usr/lib/node_modules_22/pccs/node_modules/sqlite3/build/Release/node_sqlite3.node' contains a standard runpath '/usr/lib64' in [/usr/lib64] -# ERROR 0001: file '/usr/lib/node_modules_22/pccs/node_modules/sqlite3/build/Release/obj.target/node_sqlite3.node' contains a standard runpath '/usr/lib64' in [/usr/lib64] -# -# since these are harmless just disable the check for now -# rather than trying to figure out how to remove them - -%global __brp_check_rpaths %{nil} - ############################################################ # # Note about the approach to bundling... @@ -950,6 +940,8 @@ LDFLAGS="%{build_ldflags}" \ # Keep brp-mangle-shebangs happy find node_modules -type f -exec chmod -x {} \; + patchelf --remove-rpath node_modules/sqlite3/build/Release/node_sqlite3.node + tar zxvf %{SOURCE55} ( cd node-ffi-rs-%{node_ffi_rs_version}