-
Notifications
You must be signed in to change notification settings - Fork 17
build: Remove unneeded install_name step #76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Since containers#65 we don't need to change the install name. Example build: % make cargo build --release ... Finished `release` profile [optimized] target(s) in 6.19s codesign --entitlements krunkit.entitlements --force -s - target/release/krunkit target/release/krunkit: replacing existing signature % otool -L target/release/krunkit target/release/krunkit: /opt/homebrew/opt/libkrun-efi/lib/libkrun-efi.1.dylib (compatibility version 1.0.0, current version 1.15.0) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 3502.1.255) /usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0) /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0) /usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1351.0.0) Example build with LIBKRUN_EFI: % make LIBKRUN_EFI=/usr/local/lib/libkrun-efi.dylib cargo build --release ... Finished `release` profile [optimized] target(s) in 5.66s codesign --entitlements krunkit.entitlements --force -s - target/release/krunkit target/release/krunkit: replacing existing signature % otool -L target/release/krunkit target/release/krunkit: /usr/local/lib/libkrun-efi.1.dylib (compatibility version 1.0.0, current version 1.15.0) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 3502.1.255) /usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0) /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0) /usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1351.0.0) Signed-off-by: Nir Soffer <nirsof@gmail.com>
a19ea6d to
2cea2a8
Compare
|
/cc @slp |
jakecorrenti
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @nirs, sorry for the delay.
Could you also update the README.md as well?
This internal change was not mentioned in README.md, and make LIBKRUN_EFI= is already there. |
Yes, but your changes would mean that |
|
Variables defined in the command line are passes to the environment of child processes created by make. Maybe we should document it in the Makefile, or define the default in the Makefile instead of build.rs. See https://www.gnu.org/software/make/manual/html_node/Variables_002fRecursion.html |
Ah, ok. Thank you for the clarification, I wasn't aware of how that worked. I think it's fine as is and we can merge :) |
Since #65 we don't need to change the install name.
Example build:
Example build with LIBKRUN_EFI: