mirror of
https://github.com/opnsense/src.git
synced 2026-05-04 17:05:14 -04:00
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
2 changed files with 14 additions and 0 deletions
|
|
@ -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 a new issue