mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-11 14:10:34 +00:00
Augh! Fix the sparc64 build:
If we don't have a default label location for the compiled architecture, insist that a -m <architecture> option is specified.
This commit is contained in:
parent
1021f44ab9
commit
9ef521ec86
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=115995
@ -125,6 +125,12 @@ static int allfields; /* present all fields in edit */
|
||||
static char const *xxboot; /* primary boot */
|
||||
|
||||
static off_t mbroffset;
|
||||
#ifndef LABELSECTOR
|
||||
#define LABELSECTOR -1
|
||||
#endif
|
||||
#ifndef LABELOFFSET
|
||||
#define LABELOFFSET -1
|
||||
#endif
|
||||
static int labelsoffset = LABELSECTOR;
|
||||
static int labeloffset = LABELOFFSET;
|
||||
static int bbsize = BBSIZE;
|
||||
@ -211,6 +217,8 @@ main(int argc, char *argv[])
|
||||
|
||||
if (argc < 1)
|
||||
usage();
|
||||
if (labelsoffset < 0 || labeloffset < 0)
|
||||
errx(1, "a -m <architecture> option must be specified");
|
||||
|
||||
/* Figure out the names of the thing we're working on */
|
||||
if (argv[0][0] != '/') {
|
||||
|
Loading…
Reference in New Issue
Block a user