Title: Static build on macOS fails beacuse the sources list for `libnode.a` is empty · Issue #65026 · nodejs/node · GitHub
Open Graph Title: Static build on macOS fails beacuse the sources list for `libnode.a` is empty · Issue #65026 · nodejs/node
X Title: Static build on macOS fails beacuse the sources list for `libnode.a` is empty · Issue #65026 · nodejs/node
Description: Version v26.4.0 Platform arm64 macOS Subsystem Build system What steps will reproduce the bug? Build with ./configure --enable-static <...> How often does it reproduce? Is there a required condition? Always What is the expected behavior?...
Open Graph Description: Version v26.4.0 Platform arm64 macOS Subsystem Build system What steps will reproduce the bug? Build with ./configure --enable-static <...> How often does it reproduce? Is there a required conditio...
X Description: Version v26.4.0 Platform arm64 macOS Subsystem Build system What steps will reproduce the bug? Build with ./configure --enable-static <...> How often does it reproduce? Is there a required co...
Opengraph URL: https://github.com/nodejs/node/issues/65026
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Static build on macOS fails beacuse the sources list for `libnode.a` is empty","articleBody":"### Version\n\nv26.4.0\n\n### Platform\n\n```text\narm64 macOS\n```\n\n### Subsystem\n\nBuild system\n\n### What steps will reproduce the bug?\n\nBuild with `./configure --enable-static \u003c...>`\n\n### How often does it reproduce? Is there a required condition?\n\nAlways\n\n### What is the expected behavior? Why is that the expected behavior?\n\nBuild succeeds.\n\n### What do you see instead?\n\n```console\nrm -f \u003cnode_root>/out/Release/libnode.a && /opt/local/bin/python3.12 gyp-mac-tool filter-libtool libtool -static -o \u003cnode_root>/out/Release/libnode.a \n\nerror: libtool: no files specified\nUsage: libtool -static [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-sacLT] [-no_warning_for_no_symbols]\nUsage: libtool -dynamic [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-o output] [-install_name name] [-compatibility_version #] [-current_version #] [-seg1addr 0x#] [-segs_read_only_addr 0x#] [-segs_read_write_addr 0x#] [-seg_addr_table \u003cfilename>] [-seg_addr_table_filename \u003cfile_system_path>] [-all_load] [-noall_load]\n```\n\n### Additional information\n\nIn https://github.com/nodejs/node/blob/v26.4.0/node.gyp#L1087-L1113, no C++ `sources` are provided for `'target_name': '\u003c(node_lib_target_name)'`, so the arguments for `libtool` is empty (Should be bunch of `.o` files).\n\nCompare the `sources` list for `'target_name': '\u003c(node_lib_target_name)'` in Node v25: https://github.com/nodejs/node/blob/v25.9.0/node.gyp#L888-L913","author":{"url":"https://github.com/Xmader","@type":"Person","name":"Xmader"},"datePublished":"2026-08-04T18:23:56Z","url":"https://github.com/nodejs/node/issues/65026"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:928cc149-9993-4919-4d3a-3dc815423410 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A506:1CAA92:439E6C:578B82:6AED21EB |
| html-safe-nonce | 37fd4992afb9d5b2dc4e97ac0adb3e1e6825d6b5836dcc6c11e7f037533a0f1c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTA2OjFDQUE5Mjo0MzlFNkM6NTc4QjgyOjZBRUQyMUVCIiwidmlzaXRvcl9pZCI6IjQ0NDQ3MDI4NTAwMDg1NTYwMTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7edc95c6dfafebf8b6b31adbf93d0e147bdd6bd5b2da768c9640a4a6b0eb981c |
| hovercard-subject-tag | issue:5063622757 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/65026/issue_layout |
| twitter:image | https://opengraph.githubassets.com/94399e54b5ebb15d6f62204128a6a62601cc20f04f9f1710c867221b5c2f053d/nodejs/node/issues/65026 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/94399e54b5ebb15d6f62204128a6a62601cc20f04f9f1710c867221b5c2f053d/nodejs/node/issues/65026 |
| og:image:alt | Version v26.4.0 Platform arm64 macOS Subsystem Build system What steps will reproduce the bug? Build with ./configure --enable-static <...> How often does it reproduce? Is there a required conditio... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Xmader |
| hostname | github.com |
| expected-hostname | github.com |
| None | e3e0f7f63e50c6fe879198a93a0a023a648ecc0a5e9bc3b5e033ac57172237e6 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 707a24b346ac8a82878b9c084efaa38a997660cb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width