Skip to content

Commit 1de44ab

Browse files
KenoKristofferC
authored andcommitted
Add openlibm to sysimg link line on windows (#53672)
LLVM generates calls to math intrinsics like `trunc` and `rint` (at least in my local i686 mingw) build, so linking to openlibm is required. We already have this on the sysimg link line in `Base.link_image`, so this aligns those options. --------- Co-authored-by: Elliot Saba <[email protected]> (cherry picked from commit 320366b)
1 parent b5d12a5 commit 1de44ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sysimage.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ $(build_private_libdir)/%.$(SHLIB_EXT): $(build_private_libdir)/%-o.a
1616
@$(call PRINT_LINK, $(CXX) $(LDFLAGS) -shared $(fPIC) -L$(build_private_libdir) -L$(build_libdir) -L$(build_shlibdir) -o $@ \
1717
$(WHOLE_ARCHIVE) $< $(NO_WHOLE_ARCHIVE) \
1818
$(if $(findstring -debug,$(notdir $@)),-ljulia-internal-debug -ljulia-debug,-ljulia-internal -ljulia) \
19-
$$([ $(OS) = WINNT ] && echo '' -lssp --disable-auto-import --disable-runtime-pseudo-reloc))
19+
$$([ $(OS) = WINNT ] && echo '' $(LIBM) -lssp --disable-auto-import --disable-runtime-pseudo-reloc))
2020
@$(INSTALL_NAME_CMD)$(notdir $@) $@
2121
@$(DSYMUTIL) $@
2222

0 commit comments

Comments
 (0)