Recent

Author Topic: How to pass -XPxxx to fpc for recompiling packages  (Read 3205 times)

Pascal

  • Hero Member
  • *****
  • Posts: 932
How to pass -XPxxx to fpc for recompiling packages
« on: October 24, 2018, 09:47:36 pm »
For cross compiling a powerpc64 project i use option -XPpowerpc-aix- to use the powerpc-aix-* tools instead of powerpc64-aix-*.
This works as expected but if some packages have to be recompiled fpc complains about not finding powerpc64-aix-as.exe.

I added the following to fpc.cfg:
Code: Text  [Select][+][-]
  1. #IFDEF cpupowerpc64
  2.   -XPpowerpc-aix-
  3. #ENDIF

But no change of behaviour.

Any ideas, hints?
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (21H2)

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
Re: How to pass -XPxxx to fpc for recompiling packages
« Reply #1 on: October 24, 2018, 11:00:46 pm »
Well you pass -XPpowerpc-aix

and you expect it to omit powerpc64-aix?

Pascal

  • Hero Member
  • *****
  • Posts: 932
Re: How to pass -XPxxx to fpc for recompiling packages
« Reply #2 on: October 24, 2018, 11:09:07 pm »
Well you pass -XPpowerpc-aix

and you expect it to omit powerpc64-aix?

???

No, it is using default for powerpc64/aix ("powerpc64-aix-") when cross compiling powerpc64/aix but it should use "powerpc-aix-" as prefix for tools.
This works okay for the project but not if the IDE rebuilds packages.
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (21H2)

Pascal

  • Hero Member
  • *****
  • Posts: 932
Re: How to pass -XPxxx to fpc for recompiling packages
« Reply #3 on: October 25, 2018, 05:38:54 am »
Well you pass -XPpowerpc-aix

and you expect it to omit powerpc64-aix?

???

No, it is using default for powerpc64/aix ("powerpc64-aix-") when cross compiling powerpc64/aix but it should use "powerpc-aix-" as prefix for tools.
This works okay for the project but not if the IDE rebuilds packages.

So the question is: How do i set Custom Options for rebuilding of packages?
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (21H2)

 

TinyPortal © 2005-2018