Skip to content

Conversation

@dra27
Copy link
Owner

@dra27 dra27 commented Aug 27, 2025

-lws2_32 and -ladvapi32 are already supplied by default, so they don't need to be in unix.cma/unix.cmxa. However, they do need to be passed when building unix.cmxs, and they were previously acquired via unix.cmxa. Tweak the way LDOPTS is used in Makefile.otherlibs.common (which now is only used for the unix library) so that it's correctly passed to both ocamlopt and ocamlmklib.

@dra27 dra27 added no-change-entry-needed Causes the check for a Changes entry to be skipped for PRs relocatable PRs related to the Relocatable Compiler project CI: Full matrix Full CI test matrix and removed no-change-entry-needed Causes the check for a Changes entry to be skipped for PRs labels Aug 27, 2025
@dra27 dra27 force-pushed the win32unix-libopts branch from 59f97c5 to 689cfeb Compare August 27, 2025 13:40
@dra27 dra27 changed the title [Relocatable] Follow-up 15: Fix C library options for win32unix [Relocatable] Follow-up 14: Fix C library options for win32unix Aug 28, 2025
@dra27 dra27 force-pushed the relocatable-testing branch from 3c8b5c1 to 2a7e0ad Compare September 9, 2025 22:19
@dra27 dra27 force-pushed the win32unix-libopts branch from 689cfeb to d325289 Compare September 9, 2025 22:22
@dra27 dra27 changed the base branch from relocatable-testing to trunk September 13, 2025 13:35
@dra27 dra27 force-pushed the win32unix-libopts branch from c737f28 to 656a88a Compare November 9, 2025 08:27
@dra27 dra27 force-pushed the win32unix-libopts branch from 656a88a to b66fbdd Compare November 28, 2025 21:48
@dra27 dra27 changed the base branch from trunk to relocatable-testing November 30, 2025 14:35
@dra27 dra27 force-pushed the relocatable-testing branch from d644c59 to 63922b2 Compare November 30, 2025 14:36
@dra27 dra27 force-pushed the win32unix-libopts branch from b66fbdd to 093891b Compare November 30, 2025 14:37
@dra27 dra27 force-pushed the relocatable-testing branch from 63922b2 to 198fcfd Compare December 10, 2025 11:10
@dra27 dra27 force-pushed the win32unix-libopts branch from 093891b to 005fc21 Compare December 10, 2025 12:54
@dra27 dra27 force-pushed the relocatable-testing branch from 198fcfd to 56b115d Compare December 11, 2025 18:34
@dra27 dra27 force-pushed the win32unix-libopts branch from 005fc21 to 70d140f Compare December 11, 2025 18:35
@dra27 dra27 force-pushed the relocatable-testing branch from 56b115d to 5c4d9f3 Compare December 12, 2025 11:17
-lws2_32 and -ladvapi32 are already supplied by default, so they don't
need to be in unix.cma/unix.cmxa. However, they do need to be passed
when building unix.cmxs, and they were previously acquired via
unix.cmxa. Tweak the way LDOPTS is used in Makefile.otherlibs.common
(which now is only used for the unix library) so that it's correctly
passed to both ocamlopt and ocamlmklib.
@dra27 dra27 force-pushed the win32unix-libopts branch from 70d140f to 8f0fb1a Compare December 17, 2025 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI: Full matrix Full CI test matrix relocatable PRs related to the Relocatable Compiler project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants