build: pass -fPIC to linker as well for shared builds

PR-URL: https://github.com/nodejs/node/pull/58070
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
This commit is contained in:
Michaël Zasso 2025-04-02 10:35:51 +02:00
parent 20feebb452
commit de8e7bd772
No known key found for this signature in database
GPG key ID: 770F7A9A5AE15600

View file

@ -568,6 +568,7 @@
}],
[ 'node_shared=="true"', {
'cflags': [ '-fPIC' ],
'ldflags': [ '-fPIC' ],
}],
],
}],