[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Findutils-patches] [PATCH] Avoid link failure with -fno-common (locate,
From: |
Jim Meyering |
Subject: |
[Findutils-patches] [PATCH] Avoid link failure with -fno-common (locate, this time) |
Date: |
Mon, 10 Mar 2008 10:16:03 +0100 |
Sorry I didn't spot this last time.
The link failed early because I'd compiled with -DGNULIB_PORTCHECK,
and that provoked a different failure, due to find's harmless use of ctime.
Once I rebuilt without -DGNULIB_PORTCHECK, it got far enough to expose
the failure fixed here:
Avoid link failure with -fno-common
* locate/code.c (program_name): Declare "extern".
Signed-off-by: Jim Meyering <address@hidden>
---
locate/code.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/locate/code.c b/locate/code.c
index f48885b..c07e5c0 100644
--- a/locate/code.c
+++ b/locate/code.c
@@ -1,5 +1,5 @@
/* code -- bigram- and front-encode filenames for locate
- Copyright (C) 1994, 2005, 2007 Free Software Foundation, Inc.
+ Copyright (C) 1994, 2005, 2007, 2008 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -84,7 +84,7 @@
/* The name this program was run with. */
-const char *program_name;
+extern const char *program_name;
/* The 128 most common bigrams in the file list, padded with NULs
if there are fewer. */
--
1.5.4.4.482.g5f904
- [Findutils-patches] [PATCH] Avoid link failure with -fno-common (locate, this time),
Jim Meyering <=