aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2025-07-21 23:48:43 +0200
committerAndreas K. Hüttel <dilfridge@gentoo.org>2025-07-22 14:54:24 +0200
commit1944817240eeea5c044995e45a771a5a5193ecf1 (patch)
tree62886700d43b3c760055f6cfa3cc7816cd9cf2b7
parent58d0ef79898eed5415c0dd4d3c9eda6c3c314daf (diff)
downloadglibc-master.zip
glibc-master.tar.gz
glibc-master.tar.bz2
Makeconfig: The hash character # confuses old make, use $(dir instead of sedHEADmaster
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>
-rw-r--r--Makeconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makeconfig b/Makeconfig
index e29a2db..7102d92 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -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