diff options
author | joerg <joerg@pkgsrc.org> | 2011-09-07 00:56:17 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2011-09-07 00:56:17 +0000 |
commit | 9ad2d021fa9f967e55a23b7db485006d0ffca9ba (patch) | |
tree | 276519d4329d5dcc4fe29a7cfd65b56539364ec1 /devel | |
parent | 74ff8d91d14c1019371be1993931fad4e34e34cc (diff) | |
download | pkgsrc-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.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/libgetopt/files/getopt_long.c | 10 |
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] != ':'))) |