Add an override (DONTSTRIP) so that one can easily install debugable
binaries when one cannot easily edit a package's Makefiles and/or configure scripts.
This commit is contained in:
parent
f4ff12f3be
commit
858494e461
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=156363
@ -189,6 +189,15 @@ environment variable and if present,
|
||||
uses the assigned value as the program to run if and when the
|
||||
.Fl s
|
||||
option has been specified.
|
||||
.Pp
|
||||
If the
|
||||
.Ev DONTSTRIP
|
||||
environment variable is present
|
||||
.Nm
|
||||
will ignore any specification of the
|
||||
.Fl s
|
||||
option.
|
||||
This is mainly for use in debugging The FreeBSD Ports Collection.
|
||||
.Sh FILES
|
||||
.Bl -tag -width INS@XXXX -compact
|
||||
.It Pa INS@XXXX
|
||||
|
@ -174,6 +174,11 @@ main(int argc, char *argv[])
|
||||
usage();
|
||||
}
|
||||
|
||||
if (getenv("DONTSTRIP") != NULL) {
|
||||
warnx("DONTSTRIP set - will not strip installed binaries");
|
||||
dostrip = 0;
|
||||
}
|
||||
|
||||
/* must have at least two arguments, except when creating directories */
|
||||
if (argc == 0 || (argc == 1 && !dodir))
|
||||
usage();
|
||||
|
Loading…
Reference in New Issue
Block a user