blitzpp / blitz

Blitz++ Multi-Dimensional Array Library for C++
https://github.com/blitzpp/blitz/wiki
Other
405 stars 84 forks source link

Blitz isn't multilib #65

Open slayoo opened 5 years ago

slayoo commented 5 years ago

Migrated from: https://sourceforge.net/p/blitz/bugs/18/

As reported by @sergiopasra on 2008-11-13:

A multilib package can be installed simultaneously in 32 and 64 bits versions. In linux, multilib can be summarized as only architecture independent files in /usr/include and architecture dependent files in /usr/lib and /usr/lib64 (this is the layout in fedora, in other distributions it differs).

Blitz has an architecture dependent file in /usr/include, the header bzconfig.h This file is created at build time and depends on the architecture.

As a workaround for the fedora package I have moved the bzconfig.h file to libdir/blitz/include and modified the blitz.pc file so that this new directory is included.

Another solution could be to provide a set of predefined bzconfig. files in /usr/include (one per arch) and to decide which one to load at compile time.