5.1.x - Fix Rust library filename on Windows - v1#5623
Merged
victorjulien merged 2 commits intoOISF:master-5.0.xfrom Dec 2, 2020
Merged
5.1.x - Fix Rust library filename on Windows - v1#5623victorjulien merged 2 commits intoOISF:master-5.0.xfrom
victorjulien merged 2 commits intoOISF:master-5.0.xfrom
Conversation
Moving the libs specified in LDFLAGS to LDADD put them into the correct placement on in the link command. (cherry picked from commit 10f639e)
Prior to Rust 1.44, Cargo would name static libs with the .lib extension. 1.44 changes this extension to .a when running under a GNU environment on Windows like msys to make it more similar to other unix environments. Now assume static library name to be the same on Windows and unix, but rename the .lib if found to still support older versions of Rust on Windows. (cherry picked from commit f3c59ef)
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of change in master to handle the Rust library being renamed from suricata.lib to libsuricata.a on MinGW build environments.