Description
Since we're no longer pre-building the native maps for distribution, and instead packaging a tiny C project to make it easier for users to create their own, it does not make sense for the Makefile to specify a specific architecture.
Rather, it makes more sense that the Makefile that is packaged not specify the target architecture and instead rely on the current system architecture instead.
I think all this would require is to drop -m64 from the CXXFLAGS, which seems fine for Linux. I'm not sure if this has any unintended side-effects for other systems, such as Mac.
Attachments
Attachments
Issue Links
- depends upon
-
ACCUMULO-2762 Use better compiler optimizations by default for native maps
- Resolved
The assumption here is that most users will be building on the target system in which they want to run, and that their default compiler options support the current arch.
We could implement this with an additional environment variable to pass extra flags, and for convenience, those flags can be set from the build_native_library.sh command-line. I think that solution better supports different circumstances than simply forcing -m64 as is currently done.