-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
package: fix code for detecting 64-bit compiler
bin/package, src/cmd/INIT/package.sh: - The code for detecting a 64-bit object file was seriously broken: the temporary file name could contain '64' because it included $$, the current PID, and 64-bit was detected if the output of 'file' (which includes the complete file name) contained '64'. Fix by removing the file name from 'file' output before testing. - Also refactor that code a bit and remove the nonsensical test if /bin/sh is a 64-bit binary, which is neither here nor there. It's what the compiler produces that we need to care about.
- Loading branch information
Showing
2 changed files
with
14 additions
and
32 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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