Replies: 1 comment 1 reply
-
|
Tools like The reason we do this is mostly to minimize potential errors from mismatch when linking against the runtime libraries like If you are certain that in your distribution your intended use case is fine you could still patch the flags to adjust what we injected. The linker flags are compiled into the binary here and set up in the CMake code. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Mostly a question/discussion whether different linkers (and possibly other flags) should be separated between the environment where Spicy is built and the environment where Spicy parsers are built. Currently, setting LDFLAGS to contain
-fuse-ld=lldwhen compiling Spicy itself is inherited to building Spicy parsers. This breaks if the "target" system doesn't have lld and instead maybe would prefer to usemoldor justld.Background: I've added
LDFLAGS=-fuse-ld=lldto an internal build environment to speed up linking of Zeek and Spicy. Assume the result is packaged, includingzeek,spicyc,spicy-config,spicyz, etc.Placing the package into an envrionment that doesn't have
lldand instead just the classicldlinker results in a build failure of an external analyzer:Once
lldis installed in the other environment, compilation works. I'd think this similarly applies to Zeek's binary packages from OBS. If these are built withLDFLAGS=-fuse-ld=lld, the binary packages then also depend on thelldlinker?For generic flags, they probably should stay consistent, but maybe Spicy should treat the specific linker separately?
Beta Was this translation helpful? Give feedback.
All reactions