Skip to content

Building Node with shared libuv doesn't work with the given --shared-libuv-path #58815

Open
@geeksilva97

Description

@geeksilva97

Version

v25.0.0-pre

Platform

Darwin LM-JNVH7RPW6J 23.6.0 Darwin Kernel Version 23.6.0: Thu Mar  6 22:00:07 PST 2025; root:xnu-10063.141.1.704.6~1/RELEASE_ARM64_T6030 arm64

Subsystem

build

What steps will reproduce the bug?

Configure node with

./configure --shared-libuv \
  --shared-libuv-includes=/home/libuv/include \
  --shared-libuv-libpath=/home/libuv/.libs

Compile node

make

It compiles but gets shared lib from /usr/local/lib/libuv.1.dylib as we can see using otool. After compiling

> otool -L ./node
./node:
	/usr/local/lib/libuv.1.dylib (compatibility version 2.0.0, current version 2.0.0)
	/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 3208.0.0)
	/System/Library/Frameworks/Security.framework/Versions/A/Security (compatibility version 1.0.0, current version 61439.60.117)
	/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 1800.105.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1351.0.0)

How often does it reproduce? Is there a required condition?

Always

What is the expected behavior? Why is that the expected behavior?

From my understanding, it should get from /home/libuv/.libs/libuv.1dylib since that's the path I provided in the --shared-libuv option

What do you see instead?

It's getting from /usr/local/lib/libuv.1.dylib

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildIssues and PRs related to build files or the CI.libuvIssues and PRs related to the libuv dependency or the uv binding.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions