Browse Source

* better gcclib dir detection

peter 26 years ago
parent
commit
686695ca59
1 changed files with 5 additions and 2 deletions
  1. 5 2
      base/makefile.fpc

+ 5 - 2
base/makefile.fpc

@@ -365,7 +365,7 @@ endif
 # On linux, try to find where libgcc.a is.
 # On linux, try to find where libgcc.a is.
 ifdef inlinux
 ifdef inlinux
 ifndef GCCLIBDIR
 ifndef GCCLIBDIR
-GCCLIBDIR:=$(shell dirname `(gcc -v 2>&1)| awk -F' ' '{  print $$4 } '`)
+GCCLIBDIR:=$(shell dirname `(gcc -v 2>&1)| head -n 1| awk '{ print $$4 } '`)
 endif
 endif
 endif
 endif
 
 
@@ -1001,7 +1001,10 @@ endif
 
 
 #
 #
 # $Log$
 # $Log$
-# Revision 1.17  1999-04-20 12:33:32  michael
+# Revision 1.18  1999-04-29 15:52:38  peter
+#   * better gcclib dir detection
+#
+# Revision 1.17  1999/04/20 12:33:32  michael
 # + Fixed GCCLIB detection. Added fpc_dirinfo target
 # + Fixed GCCLIB detection. Added fpc_dirinfo target
 #
 #
 # Revision 1.16  1999/04/20 12:07:49  michael
 # Revision 1.16  1999/04/20 12:07:49  michael