From eed79507a3e41c14c6b3ffcef2b7f6ef76b08b90 Mon Sep 17 00:00:00 2001 From: Kristian Larsson Date: Tue, 19 Dec 2023 11:15:33 +0100 Subject: [PATCH] Order libgc .c files lexicographically in cmake and automake scripts (refactoring) PR #598 (bdwgc). * CMakeLists.txt (SRC): Order items lexicographically. * Makefile.am [!SINGLE_GC_OBJ] (libgc_la_SOURCES): Likewise. --- CMakeLists.txt | 8 ++++---- Makefile.am | 7 +++---- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f3e7750f7..8b138519f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -170,10 +170,10 @@ endif() include_directories(include) -set(SRC alloc.c reclaim.c allchblk.c misc.c mach_dep.c os_dep.c - mark_rts.c headers.c mark.c obj_map.c blacklst.c finalize.c - new_hblk.c dbg_mlc.c malloc.c dyn_load.c typd_mlc.c ptr_chck.c - mallocx.c) +set(SRC allchblk.c alloc.c blacklst.c dbg_mlc.c dyn_load.c finalize.c + headers.c mach_dep.c malloc.c mallocx.c mark.c mark_rts.c misc.c + new_hblk.c obj_map.c os_dep.c ptr_chck.c reclaim.c typd_mlc.c) + set(NODIST_SRC) set(ATOMIC_OPS_LIBS) set(ATOMIC_OPS_LIBS_CMAKE) diff --git a/Makefile.am b/Makefile.am index cb9eac650..78fdd862f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -62,10 +62,9 @@ else EXTRA_DIST += extra/gc.c libgc_la_SOURCES = \ - allchblk.c alloc.c blacklst.c dbg_mlc.c \ - dyn_load.c finalize.c gc_dlopen.c headers.c \ - mach_dep.c malloc.c mallocx.c mark.c mark_rts.c misc.c new_hblk.c \ - obj_map.c os_dep.c ptr_chck.c reclaim.c specific.c typd_mlc.c + allchblk.c alloc.c blacklst.c dbg_mlc.c dyn_load.c finalize.c gc_dlopen.c \ + headers.c mach_dep.c malloc.c mallocx.c mark.c mark_rts.c misc.c \ + new_hblk.c obj_map.c os_dep.c ptr_chck.c reclaim.c specific.c typd_mlc.c # C Library: Architecture Dependent # ---------------------------------