Hi,

sometime in the past we encountered that the includes for curl are
dependent for 32/64 bit. The solution at that time was to insert
a "branch-include" which basically took the 32- and 64-bit version,
renamed them and conditionally included each one depending if
__amd64 or __sparcv9 was set.

Now Rupert had problems building apr/apr-util/apache with 32/64 bit
and I had a look. apr also the issues with 32/64 dependent includes.
As there were some other issues with the OpenCSW package I looked
at the manifest from OSOL for inspiration and encountered something
really cool.
  
http://cvs.opensolaris.org/source/xref/sfw/usr/src/cmd/apr/apr-1.3/Makefile.sfw
If you do
  diff -D __amd64 curlbuild-32.h curlbuild-64.h
It will generate an include file where the differences only in the second file will be shielded by C preprocessor ifdefs with the string after the -D.
I like this that much that I am really thinking of making this fully
automatic: On merge GAR currently just copies over the default (32 bit)
modulation. I could just merge over the diff'ed 32/64 between the
default 32 bit ISA and 64 bit ISA easily making these special things
obsolete.

Thoughts?


Best regard

 -- Dago


_______________________________________________
maintainers mailing list
[email protected]
https://lists.opencsw.org/mailman/listinfo/maintainers
.:: This mailing list's archive is public. ::.

Reply via email to