rocksdb: fix cross-compiling on darwin#216450
Conversation
ef62570 to
91d07e7
Compare
winterqt
left a comment
There was a problem hiding this comment.
Nit with regards to the commit message (if you think it's fine, feel free to ignore this): maybe mention "fix cross-compilation on darwin" in the first line? It doesn't really matter since you mention it in the description though :)
done, fixed. |
|
@winterqt may I ask why some derivations don't need to include this prefix but still build succesfully? |
|
@yihuang Can you remove the
Do you have an example in mind? I assume you mean when cross-compiling -- that does sound weird. |
zstd cross-build fine without this prefix. |
install_name_tool not found when crossing compiling on darwin
done |
Huh, that is weird, as even the hook it uses specifies the prefix. I assume I can reproduce this by just trying to cross build from x86_64-darwin to aarch64-darwin? |
yes, that's what I'm doing. |
Are you referring to this That is dependant on the |
I see, that makes sense, thanks |
|
Was the second commit meant to go in a different PR? I thought rocksdb worked with just the install_name_tool reference fix? |
I just found out, the cross-compiled library is like this: there are two link path not replaced with absolute path, it doesn't happen when doing native build. I don't know where is the best place to fix this. And the |
install_name_tool not found when crossing compiling on darwin
Closes: #216431
Description of changes
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)