abb053274b
Without -fcommon we get an error due to program_name being used in two source files: ld: error: duplicate symbol: program_name >>> defined at global.c >>> global.o:(program_name) >>> defined at progname.c >>> progname.o:(.bss+0x0) in archive ../gnu/libgnu.a clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
12 lines
380 B
Diff
12 lines
380 B
Diff
--- ../global.c.orig 2021-11-17 20:03:46.273607977 +0000
|
|
+++ ./src/global.c 2021-11-17 20:04:24.600257641 +0000
|
|
@@ -185,7 +185,7 @@
|
|
bool to_stdout_option = false;
|
|
|
|
/* The name this program was run with. */
|
|
-char *program_name;
|
|
+extern char *program_name;
|
|
|
|
/* A pointer to either lstat or stat, depending on whether
|
|
dereferencing of symlinks is done for input files. */
|