From b9151db4c6106a8158cd23014cbe83df6e5f8562 Mon Sep 17 00:00:00 2001 From: joerg Date: Wed, 7 Sep 2011 00:56:17 +0000 Subject: 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. --- devel/libgetopt/files/getopt_long.c | 10 +--------- 1 file changed, 1 insertion(+), 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] != ':'))) -- cgit v1.2.3