]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Makeconfig: The hash character # confuses old make, use $(dir instead of sed
authorAndreas K. Hüttel <dilfridge@gentoo.org>
Mon, 21 Jul 2025 21:48:43 +0000 (23:48 +0200)
committerAndreas K. Hüttel <dilfridge@gentoo.org>
Tue, 22 Jul 2025 12:54:24 +0000 (14:54 +0200)
Up to Make 4.2, # is treated as the start of a comment even in
function invocations. This leads to a syntax error. Fixed in Make 4.3,
but we still support versions back to 4.0 at the moment.

Tested on Gentoo (x86-64) and Debian (loongarch64)

Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Reviewed-by: Collin Funk <collin.funk1@gmail.com>
Makeconfig

index e29a2db058dd176f0484d97685e4673b344c5d48..7102d922b23c0c39254a149ffd3068bbfc319434 100644 (file)
@@ -718,7 +718,7 @@ libgcc_eh := -Wl,--as-needed -lgcc_s $(libunwind) -Wl,--no-as-needed
 gnulib-arch =
 gnulib = -lgcc $(gnulib-arch)
 gnulib-tests := -lgcc $(libgcc_eh)
-gnulib-extralibdir = $(shell $(CC) -print-file-name=libgcc_s.so$(libgcc_s.so-version) | sed 's#/[^/]*$$##')
+gnulib-extralibdir = $(dir $(shell $(CC) -print-file-name=libgcc_s.so$(libgcc_s.so-version)))
 static-gnulib-arch =
 # By default, elf/static-stubs.o, instead of -lgcc_eh, is used to
 # statically link programs.  When --disable-shared is used, we use