Since the program is installed as 'bsdranlib', we need to
check if it is invoked as 'bsdranlib'. Reported by: Michael Plass <mfp49_freebsd [AT] plass-family [DOT] net> Reviewed by: Michael Plass <mfp49_freebsd [AT] plass-family [DOT] net> Reviewed by: jkoshy Approved by: jkoshy (mentor)
This commit is contained in:
parent
4c8e0452e0
commit
a711c209bc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=176527
@ -108,7 +108,8 @@ main(int argc, char **argv)
|
||||
if ((bsdar->progname = getprogname()) == NULL)
|
||||
bsdar->progname = "ar";
|
||||
|
||||
if (strcmp(bsdar->progname, "ranlib") == 0) {
|
||||
if (strcmp(bsdar->progname, "ranlib") == 0 ||
|
||||
strcmp(bsdar->progname, "bsdranlib") == 0) {
|
||||
while ((opt = getopt_long(argc, argv, "tV", longopts,
|
||||
NULL)) != -1) {
|
||||
switch(opt) {
|
||||
|
Loading…
Reference in New Issue
Block a user