Skip to content

Commit 320366b

Browse files
Kenostaticfloat
andauthored
Add openlibm to sysimg link line on windows (JuliaLang#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]>
1 parent dd1ed17 commit 320366b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sysimage.mk

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

0 commit comments

Comments
 (0)