[csw-maintainers] Using an architecture-specific includes in GAR

Maciej Bliziński maciej at opencsw.org
Fri Aug 5 09:15:06 CEST 2011


Hello maintainers,

Suppose I have a package which has different headers for different
architectures (e.g. libgmp).  What's the best place for the headers?
Is the following sane?

/opt/csw/include/amd64 d none 0755 root bin CSWlibgmp-dev
/opt/csw/include/amd64/gmp.h f none 0644 root bin 86215 39079
1312523810 CSWlibgmp-dev
/opt/csw/include/gmp.h f none 0644 root bin 86204 38065 1312523796 CSWlibgmp-dev
/opt/csw/include/pentium d none 0755 root bin CSWlibgmp-dev
/opt/csw/include/pentium/gmp.h f none 0644 root bin 86208 38680
1312523801 CSWlibgmp-dev

Second question: Is there an idiom in GAR that automatically pick the
right include file? For example, when I'm building for amd64, I want
the /opt/csw/include/amd64 directory to be first in the include search
path. I know I can fiddle with EXTRA_INC in my build description, but
perhaps there's already something in the GAR code to handle this case.

Maciej


More information about the maintainers mailing list