Hello,

When dealing with config running on different platforms (ex: Linux/Solaris/Windows, 32/64 bits), it is very difficult to write a generic config because some dependencies are platform-specific.
Ex:
 - LoadFile /lib64/libgcc_s.so.1
 - LoadFile /lib/libgcc_s.so.1

Couldn't we add some defines in the build to identify (at least) the OS and 
32/64 bits, like
 -D OS_UNIX / OS_WINDOWS
 -D OS_32 / OS_64
 -D OS_LINUX / OS_FREEBSD / OS_SOLARIS
 -D OS_LINUX_REDHAT / OS_LINUX_UBUNTU / ... (?)

This would allow the following generic config:
 <IfDefine OS_UNIX>
  <IfDefine OS_32>
   LoadFile /usr/lib/libxml2.so.2
  </IfDefine>
  <IfDefine OS_64>
   LoadFile /usr/lib64/libxml2.so.2
  </IfDefine>
 </IfDefine>

Regards,

Nick

Reply via email to