ç¶ã ã»Autotools
d:id:youandi:20121214:p1
ä»æ¥å°ã£ãã®ã¯ã64bitOSä¸ã§32bitãã¤ããªãä½æããMakefileãã©ãããã°çæã§ããã®ãã
gcc - Configure fails to detect proper ld on a 64-bit system with 32-bit userland - Stack Overflow
http://stackoverflow.com/questions/12828687/configure-fails-to-detect-proper-ld-on-a-64-bit-system-with-32-bit-userland
ä¸è¨ã§ã¯ãconfigureã®å¼æ°ã§ãã«ãã¿ã¼ã²ãããæå®ããã£ã¦ã¬ã¹ãä»ãã¦ã¾ããã
$ ./configure \ --host=i686-unknown-linux-gnu \ --build=i686-unknown-linux-gnu \ --target=i686-unknown-linux-gnu
ãã®æ¹æ³ã ãã§ã¯è¶³ããªãæãã
$ CXX="g++ -m32" ./configure \ --host=i686-unknown-linux-gnu \ --build=i686-unknown-linux-gnu \ --target=i686-unknown-linux-gnu
ã³ã³ãã¤ã©ã«32bitãã¤ããªçæãªãã·ã§ã³ãä»ããããã²ã¨ã¾ã32bitãã¤ããªã¯åºæ¥ããã©ããçæãããMakefileã«ã¯64bitçã®ãããã¼ãã¹ãã©ã¤ãã©ãªãã¹ãè¨å®ããã¦ãã¾ã£ã¦ããã
ä»ã®æ¹æ³ã¨ãã¦ã¯ãã³ã³ãã¤ã©ã«32bitæå®ãä»ããã®ã§ã¯ãªããCFLAGSãCXXFLAGSã«æå®ããæ¹æ³ããããã©éãã¯ãªãã£ãã