Re: Architecture specific header files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dne 28.6.2013 15:04, Jakub Jelinek napsal(a):
On Fri, Jun 28, 2013 at 02:58:12PM +0200, Vít Ondruch wrote:
Dne 25.6.2013 15:41, Vít Ondruch napsal(a):
Is there some common practice, where to place architecture
specific header files? From output of the following command, I
can't see any such place.
gcc doesn't have such location, you'd want a different path
for gcc -m64, different for gcc -m32, different for gcc -mx32, ....
The standard way is to add a wrapper header and include your arch specific
header based on compiler predefined macros.  Say something like:
# ifdef __i386__
#  include <asm/posix_types_32.h>
# elif defined(__ILP32__)
#  include <asm/posix_types_x32.h>
# else
#  include <asm/posix_types_64.h>
# endif
or, if possible, avoid arch specific headers altogether.

	Jakub

BTW it seems that Debian already does this, although in completely different scale: http://wiki.debian.org/Multiarch/TheCaseForMultiarch


Vít
--
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux