From 08238c088cea3a552221aa5eca0774993aa95ad6 Mon Sep 17 00:00:00 2001 From: Anton Kachalov Date: Fri, 27 Feb 2004 18:19:18 +0000 Subject: [PATCH] gcc libdir patch --- Makefile.common | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile.common b/Makefile.common index fc08bb0..fb5c0c5 100644 --- a/Makefile.common +++ b/Makefile.common @@ -47,8 +47,10 @@ GLIBC_INCLUDES = -I. -I$(top_dir)/$(TMP_PKG)/usr/include # -I$(top_dir)/$(TMP_PKG)/usr/lib/dietlibc/include -I$(top_dir)/$(TMP_PKG)/usr/include INCLUDES = $($(L)_INCLUDES) +GCC_LIBDIR=$(shell dirname `gcc -print-libgcc-file-name`) + GLIBC_LDFLAGS_STAGE1 = -static -DIETLIBC_LDFLAGS_STAGE1 = -nostdlib $(top_dir)/$(TMP_PKG)/usr/lib/dietlibc/lib-$(ARCH)/start.o -L/usr/lib/gcc-lib/i*86-alt-linux/3.*/ -lgcc +DIETLIBC_LDFLAGS_STAGE1 = -nostdlib $(top_dir)/$(TMP_PKG)/usr/lib/dietlibc/lib-$(ARCH)/start.o -L$(GCC_LIBDIR) -lgcc LDFLAGS_STAGE1 = $($(L)_LDFLAGS_STAGE1) GLIBC_LIBC =