summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2011-09-07 00:56:17 +0000
committerjoerg <joerg@pkgsrc.org>2011-09-07 00:56:17 +0000
commit9ad2d021fa9f967e55a23b7db485006d0ffca9ba (patch)
tree276519d4329d5dcc4fe29a7cfd65b56539364ec1
parent74ff8d91d14c1019371be1993931fad4e34e34cc (diff)
downloadpkgsrc-9ad2d021fa9f967e55a23b7db485006d0ffca9ba.tar.gz
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.
-rw-r--r--devel/libgetopt/files/getopt_long.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/devel/libgetopt/files/getopt_long.c b/devel/libgetopt/files/getopt_long.c
index 2d2b4b7eae1..214cab7c28d 100644
--- a/devel/libgetopt/files/getopt_long.c
+++ b/devel/libgetopt/files/getopt_long.c
@@ -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] != ':')))