From 2801bfef9702d716809f92c52f8dbe64453601f6 Mon Sep 17 00:00:00 2001 From: michael Date: Tue, 20 Apr 1999 12:07:49 +0000 Subject: [PATCH] Added autodetect of gcc lib for linux --- base/makefile.fpc | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/base/makefile.fpc b/base/makefile.fpc index 33962f2395..95b5fb7adb 100644 --- a/base/makefile.fpc +++ b/base/makefile.fpc @@ -362,6 +362,12 @@ BASEINSTALLDIR=$(PREFIXINSTALLDIR) endif endif +# try to find where libgcc.a is. +ifdef inlinux +ifndef GCCLIBDIR +GCCLIBDIR:=$(shell "dirname `gcc -v | & awk -F" " ' print $4 }'`") +endif +endif ##################################################################### # Install Directories based on BASEINSTALLDIR @@ -876,8 +882,9 @@ fpc_depend: # Info rules ##################################################################### -fpc_info: fpc_cfginfo fpc_objectinfo fpc_toolsinfo fpc_installinfo - +fpc_info: fpc_cfginfo fpc_objectinfo fpc_toolsinfo fpc_installinfo\ + fpc_dirinfo + fpc_cfginfo: @$(ECHO) @$(ECHO) == Configuration info == @@ -890,6 +897,11 @@ fpc_cfginfo: @$(ECHO) Basedir... $(BASEDIR) @$(ECHO) +fpc_dirinfo +ifdef inlinux + @$(ECHO) GCC library in $(GCCLIBDIR) +endif + fpc_toolsinfo: @$(ECHO) @$(ECHO) == Tools info == @@ -973,7 +985,10 @@ endif # # $Log$ -# Revision 1.15 1999-04-16 20:12:35 michael +# Revision 1.16 1999-04-20 12:07:49 michael +# Added autodetect of gcc lib for linux +# +# Revision 1.15 1999/04/16 20:12:35 michael # + install target now correctly takes the BASEINSTALLDIR on linux # # Revision 1.14 1999/04/08 10:16:17 peter