FreeSpacenav / libspnav

Library for communicating with spacenavd or 3dxsrv to get input from 6-dof devices.
http://spacenav.sourceforge.net
Other
75 stars 36 forks source link

Needed to specify -m32 tag when building 32 bit on a 64 bit system #4

Closed spebmc998 closed 5 years ago

spebmc998 commented 5 years ago

I'm currently building on a 64 bit system, but I need to integrate spacenvd into a program that is built using -m32 flag. This allowed the program to properly link to the library.

jtsiomb commented 5 years ago

This is one of many possible cases of cross-compiling, and I don't think it merits a special configure option. The same result can be achieved by simply running make CC='gcc -m32' similar to how one would cross-compile for say ARM by doing make CC=arm-linux-gnueabi-gcc.

If there was going to be an option for this, it should be generic, like the --target autoconf option. But again I don't see much need for that.