Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split xxd build to separate compile/link steps
Previously xxd was built in a single compiler command, which works, but on macOS this makes it impossible to get reproducible builds when building with debug symbols (-g). This is because on macOS the linker includes a debug map reference to the original .o file in the executable and when a binary is compiled/linked in one command, the .o file reference is pointing to a temp folder location that is not relative or deterministic. Even if we strip the binary of debug symbols post-build, this info would affect the generation of the UUID metadata of the binary. On Linux this doesn't matter because the executable has the entire DWARF info and only refers back to the .c file, and does not need to point to the .o file. Program behavior-wise xxd should be identical to before.
- Loading branch information