diff options
| author | pierre <pierre@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2009-12-09 10:43:54 +0000 |
|---|---|---|
| committer | pierre <pierre@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2009-12-09 10:43:54 +0000 |
| commit | 181aff7fe2c9c76bfbd48fd585ba35064947c35f (patch) | |
| tree | 8b3ab31440a595a1b89253b0d68a8d0079b5a5fd /packages/gdbint | |
| parent | a5e5c80d80f5b760ff90d7c2cd6f4b5f166ba767 (diff) | |
| download | fpc-181aff7fe2c9c76bfbd48fd585ba35064947c35f.tar.gz | |
* also accept cc as compiler
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@14374 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'packages/gdbint')
| -rwxr-xr-x | packages/gdbint/gen-gdblib-inc.sh | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/packages/gdbint/gen-gdblib-inc.sh b/packages/gdbint/gen-gdblib-inc.sh index 652ba79269..10175fd8ab 100755 --- a/packages/gdbint/gen-gdblib-inc.sh +++ b/packages/gdbint/gen-gdblib-inc.sh @@ -12,7 +12,7 @@ if [ "${PATHEXT}" != "" ]; then fi else EXEEXT= - libdir=/libdir + libdir=/lib fi echo "Deleting gdb${EXEEXT} to force recompile" @@ -44,12 +44,13 @@ cat make.log | gawk ' BEGIN { doprint=0 } - -/gcc / { doprint=1; } +# We look for the compilation line +# either gcc or cc +/cc / { doprint=1; } { if ( doprint == 1 ) { - print $0 + print $0 } } @@ -76,7 +77,7 @@ BEGIN { { nb = split ($0,list); - + for (i=1; i<=nb; i++) { if ( list[i] ~ /lib[^ ]*\.a/ ) { staticlib = gensub (/([^ ]*)(lib[^ ]*\.a)/,"\\1\\2 ","g",list[i]); @@ -95,9 +96,9 @@ BEGIN { } } ' | tee copy-libs.sh -chmod u+x ./copy-libs.sh +chmod u+x ./copy-libs.sh # For later - + echo Creating ./gdblib.inc file # Generate gdblib.inc file cat comp-cmd.log |gawk -v destdir=${destdir} -v gdbversion=${gdbversion} ' @@ -110,7 +111,7 @@ BEGIN { { nb = split ($0,list); - + for (i=1; i<=nb; i++) { if ( list[i] ~ /lib[^ ]*\.a/ ) { staticlib = gensub (/([^ ]*)(lib[^ ]*\.a)/,"{$LINKLIB \\2} { found in \\1 }","g",list[i]); @@ -130,8 +131,8 @@ END { print "{$undef NotImplemented}" if ( use_mingw == 1 ) { print "{$define USE_MINGW_GDB}" - } + } } ' | tee gdblib.inc - + |
