[fpc-devel] Proposal to adapt search patch under Haiku using a target specific option (-WH).
Pierre Muller
pierre at freepascal.org
Mon Dec 31 12:00:05 CET 2018
Hi Olivier,
if you want, I can integrate those changes into trunk for you.
Did you already start working on other CPU support for Haiku?
Do you have any compile-farm similar to gcc-farm?
It would be nice to also get regular testsuite results for Haiku OS!
Have a nice new year celebration!
Pierre
PS: I don't remember if you speak French,
but, just in case,
Bonne et heureuse année
else
Happy New Year!
Le 30/12/2018 à 14:58, Olivier Coursière via fpc-devel a écrit :
> Some background :
>
> Haiku currently supports two compilers toolchains with two sets of
> libraries and ABI for its 32 bits flavor :
> - gcc 2 for BeOS compatibility
> - gcc 4 (or above : currently 7.3) for newer libraries like Qt (and
> Lazarus).
>
> The default gcc toolchain can be changed using a command line : setarch
> currently accepting x86_gcc2 or x86.
> Once this is done, the only practical difference from Freepascal point
> of view is that the search patch should be adapted to use the rights
> libraries according to the context.
>
> A few years ago, i have open the bug 26486
> (https://bugs.freepascal.org/view.php?id=26486) with a first proposal
> that was too hacky to be committed. Since then, i have made another
> proposition involving a new command line switch to let specifying the
> set of search paths when targeting gcc4. This alternative proposal got
> unnoticed since then.
>
> I am currently looking at packaging Lazarus for Haiku and it would
> simplify the process a lot in our Haikuports system (our equivalent of
> Ports in FreeBSD).
>
> So here is the proposal :
>
> I propose to add a -WH option that can accept a "gcc4" parameter to
> specify the alternative option. This is similar to others -W options
> used to specify the kind of applications on the same platform (like -WA
> or -WG for Windows).
> It would simplify lazarus building under Haiku using a command like that :
>
> make LCL_PLATFORM=qt OPT="-WHgcc4"
>
> Do you think that kind of options could be upstreamed ? If so, i can
> update the patch to match current sources and maybe use the same option
> names as setarch to specify the platform.
>
> If not, i can still patch freepascal sources before packaging freepascal
> for Haiku through our haikuports system. But it would be, in my opinion,
> less practical on the long term.
>
> Or maybe someone will come up with a better idea to handle that kind of
> problems ?
>
> What do you think about this proposal ?
>
> _______________________________________________
> fpc-devel maillist - fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
>
More information about the fpc-devel
mailing list