aboutsummaryrefslogtreecommitdiff
path: root/tomo.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-03-17 18:36:55 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-03-17 18:36:55 -0400
commitca004e57f2589c852a69033c45c3778036a8def9 (patch)
tree460399c1ce0839107a625bfe5db29c0af756bea5 /tomo.c
parent74f6aaa97c519080aaa54a8a934c3766bdb0835b (diff)
Fix issue with extern functions
Diffstat (limited to 'tomo.c')
-rw-r--r--tomo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tomo.c b/tomo.c
index 4cb024e2..279a7c79 100644
--- a/tomo.c
+++ b/tomo.c
@@ -329,7 +329,7 @@ void build_library(Text_t lib_dir_name)
FILE *prog;
for (int64_t i = 0; i < tm_files.length; i++) {
Path_t f = *(Path_t*)(tm_files.data + i*tm_files.stride);
- prog = run_cmd("nm -Ug -fjust-symbols '%s.o' | sed 's/_\\$\\(.*\\)/\\0 _$%s$\\1/' >>symbol_renames.txt",
+ prog = run_cmd("nm -Ug -fjust-symbols '%s.o' | sed -n 's/_\\$\\(.*\\)/\\0 _$%s$\\1/p' >>symbol_renames.txt",
Path$as_c_string(f), CORD_to_const_char_star(env->libname));
int status = pclose(prog);
if (!WIFEXITED(status) || WEXITSTATUS(status) != 0)