Menu

#7 g++: error: unrecognized command line option '-m64'

v1.0 (example)
open
nobody
None
5
2016-07-12
2016-07-12
No

Hi,

fsa is failing on Debian builds on multiple architectures (mips, arm) with the following error:

g++ -DHAVE_CONFIG_H -I. -I../..  -I../../src -Wdate-time -D_FORTIFY_SOURCE=2  -Wall -Wno-tautological-compare -m64 -O3 -ffast-math -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -DNDEBUG -c -o dexception.o dexception.cc
g++: error: unrecognized command line option '-m64'

Autoconf macro that detects if -m64 is a valid compiler option is not working properly. Before AC_COMPILE_IFELSE macro CXXFLAGS should be used if the selected language is C++.

The attached patch fixes the build.

Thanks,
Daniel

1 Attachments

Discussion


Log in to post a comment.

MongoDB Logo MongoDB