fix vc.config after commit 8920956a8b (#81)

- add -I{prefix}/{target}/include to cc and as include paths
- remove -L{prefix}/{target}/vbcc/include from ld paths (this
  one is not related to commit 8920956a8b but that path isn't
  needed for linkage either.)
This commit is contained in:
sezero 2017-07-18 17:42:06 +03:00 committed by Krystian Bacławski
parent 09925af99a
commit 8d9403d30d
1 changed files with 11 additions and 10 deletions

View File

@ -190,29 +190,30 @@ def install_vbcc_toolchain():
'{prefix}/{target}/vbcc/lib')
config = textfile(
('-cc={prefix}/{target}/bin/vbccm68k -hunkdebug %s -o= %s %s -O=%ld' +
' -quiet -I{prefix}/{target}/vbcc/include -I{prefix}/{target}/ndk/include'),
' -quiet -I{prefix}/{target}/vbcc/include -I{prefix}/{target}/ndk/include' +
' -I{prefix}/{target}/include'),
('-ccv={prefix}/{target}/bin/vbccm68k -hunkdebug %s -o= %s %s -O=%ld' +
' -I{prefix}/{target}/vbcc/include -I{prefix}/{target}/ndk/include'),
' -I{prefix}/{target}/vbcc/include -I{prefix}/{target}/ndk/include' +
' -I{prefix}/{target}/include'),
('-as={prefix}/{target}/bin/vasmm68k_mot -Fhunk -phxass -opt-fconst' +
' -nowarn=62 -quiet -I{prefix}/{target}/ndk/include %s -o %s'),
' -nowarn=62 -quiet -I{prefix}/{target}/ndk/include' +
' -I{prefix}/{target}/include %s -o %s'),
('-asv={prefix}/{target}/bin/vasmm68k_mot -Fhunk -phxass -opt-fconst' +
' -nowarn=62 -I{prefix}/{target}/ndk/include %s -o %s'),
' -nowarn=62 -I{prefix}/{target}/ndk/include' +
' -I{prefix}/{target}/include %s -o %s'),
'-rm=rm %s',
'-rmv=rm -v %s',
('-ld={prefix}/bin/vlink -bamigahunk -x -Bstatic -Cvbcc -nostdlib' +
' {prefix}/{target}/vbcc/lib/startup.o %s %s' +
' -L{prefix}/{target}/vbcc/lib' +
' -L{prefix}/{target}/vbcc/include -lvc -o %s'),
' -L{prefix}/{target}/vbcc/lib -lvc -o %s'),
('-l2={prefix}/bin/vlink -bamigahunk -x -Bstatic -Cvbcc -nostdlib' +
' %s %s -L{prefix}/{target}/vbcc/lib' +
' -L{prefix}/{target}/vbcc/include -o %s'),
('-ldv={prefix}/bin/vlink -bamigahunk -t -x -Bstatic -Cvbcc -nostdlib' +
' {prefix}/{target}/vbcc/lib/startup.o %s %s' +
' -L{prefix}/{target}/vbcc/lib' +
' -L{prefix}/{target}/vbcc/include -lvc -o %s'),
' -L{prefix}/{target}/vbcc/lib -lvc -o %s'),
('-l2v={prefix}/bin/vlink -bamigahunk -t -x -Bstatic -Cvbcc -nostdlib' +
' %s %s -L{prefix}/{target}/vbcc/lib' +
' -L{prefix}/{target}/vbcc/include -o %s'),
' %s %s -L{prefix}/{target}/vbcc/lib -o %s'),
'-ldnodb=-s -Rshort',
'-ul=-l%s',
'-cf=-F%s',