* improved libgcc detection

This commit is contained in:
florian 2004-01-31 14:36:48 +00:00
parent 4afbd766cf
commit 0ae641a4f5

View File

@ -636,7 +636,7 @@ endif
# On linux, try to find where libgcc.a is.
ifeq ($(OS_SOURCE),linux)
ifndef GCCLIBDIR
GCCLIBDIR:=$(shell dirname `(gcc -v 2>&1)| head -n 1| awk '{ print $$4 } '`)
GCCLIBDIR:=$(shell dirname `gcc -print-libgcc-file-name`)
endif
ifndef OTHERLIBDIR
OTHERLIBDIR:=$(shell grep -v "^\#" /etc/ld.so.conf | awk '{ ORS=" "; print $1 }')