Don't use __weak_alias. This results in duplicate symbols being created
in the output. GNU as silently discards one, LLVM is more strict in this regard.
This commit is contained in:
parent
43407d5f63
commit
200c66a8e6
1 changed files with 1 additions and 9 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: getopt_long.c,v 1.3 2008/04/29 05:46:09 martin Exp $ */
|
||||
/* $NetBSD: getopt_long.c,v 1.4 2011/09/07 00:56:17 joerg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2000 The NetBSD Foundation, Inc.
|
||||
|
@ -42,9 +42,6 @@
|
|||
#endif
|
||||
|
||||
#ifdef REPLACE_GETOPT
|
||||
#ifdef __weak_alias
|
||||
__weak_alias(getopt,_getopt)
|
||||
#endif
|
||||
int opterr = 1; /* if error message should be printed */
|
||||
int optind = 1; /* index into parent argv vector */
|
||||
int optopt = '?'; /* character checked for validity */
|
||||
|
@ -52,11 +49,6 @@ int optreset; /* reset getopt */
|
|||
char *optarg; /* argument associated with option */
|
||||
#endif
|
||||
|
||||
#ifdef __weak_alias
|
||||
__weak_alias(getopt_long,_getopt_long)
|
||||
#endif
|
||||
|
||||
|
||||
#define IGNORE_FIRST (*options == '-' || *options == '+')
|
||||
#define PRINT_ERROR ((opterr) && ((*options != ':') \
|
||||
|| (IGNORE_FIRST && options[1] != ':')))
|
||||
|
|
Loading…
Reference in a new issue