summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg>2011-09-07 00:56:17 +0000
committerjoerg <joerg>2011-09-07 00:56:17 +0000
commitb9151db4c6106a8158cd23014cbe83df6e5f8562 (patch)
tree276519d4329d5dcc4fe29a7cfd65b56539364ec1
parent129b142dacf5db29d62d655979b1f6b0219fc8d3 (diff)
downloadpkgsrc-b9151db4c6106a8158cd23014cbe83df6e5f8562.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] != ':')))