gdbm: Fix multiple definitions error when building with clang

This commit is contained in:
Christian Kampka 2020-11-13 19:10:27 +01:00 committed by Frederik Rietdijk
parent 6dd536a3cb
commit 9451ae5974
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,25 @@
From 2c31a95d9e57a4308c5159c50e69b5c9178dee72 Mon Sep 17 00:00:00 2001
From: Christian Kampka <christian@kampka.net>
Date: Fri, 13 Nov 2020 16:52:12 +0100
Subject: [PATCH] Remove duplicate assignments
---
src/parseopt.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/parseopt.c b/src/parseopt.c
index 268e080..a4c8576 100644
--- a/src/parseopt.c
+++ b/src/parseopt.c
@@ -255,8 +255,6 @@ print_option_descr (const char *descr, size_t lmargin, size_t rmargin)
}
char *parseopt_program_name;
-char *parseopt_program_doc;
-char *parseopt_program_args;
const char *program_bug_address = "<" PACKAGE_BUGREPORT ">";
void (*parseopt_help_hook) (FILE *stream);
--
2.25.4

View File

@ -11,6 +11,8 @@ stdenv.mkDerivation rec {
doCheck = true; # not cross;
patches = [ ./0001-Remove-duplicate-assignments.patch ];
# Linking static stubs on cygwin requires correct ordering.
# Consider upstreaming this.