Recent

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

Pascal

  • Hero Member
  • *****
  • Posts: 783
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 - fpc trunk 32bit - Windows 10 Pro x64 (1803)

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6617
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: 783
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 - fpc trunk 32bit - Windows 10 Pro x64 (1803)

Pascal

  • Hero Member
  • *****
  • Posts: 783
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 - fpc trunk 32bit - Windows 10 Pro x64 (1803)