mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-23 09:18:52 +00:00
Last fixups in the Cmake stuff and better default build instruction
This commit is contained in:
parent
82ecb3f088
commit
34ebfe39cd
@ -382,19 +382,12 @@ else()
|
||||
set(RELEASE_FLAGS "${RELEASE_FLAGS} -ffat-lto-objects")
|
||||
endif()
|
||||
# Since gcc 4.9 the LTO format is non-standard (slim), so we need the gcc-specific ar and ranlib binaries
|
||||
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND NOT (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.9.0))
|
||||
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND NOT (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.9.0) AND NOT OPENBSD)
|
||||
set(CMAKE_AR "gcc-ar")
|
||||
set(CMAKE_RANLIB "gcc-ranlib")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(OPENBSD)
|
||||
# This works around some bugs in the gcc 4.9 package as well as forces Boost to use the multithreaded libs
|
||||
set(CMAKE_AR "ar")
|
||||
set(CMAKE_RANLIB "ranlib")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
|
||||
endif()
|
||||
|
||||
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} ${DEBUG_FLAGS}")
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${DEBUG_FLAGS}")
|
||||
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} ${RELEASE_FLAGS}")
|
||||
|
@ -173,9 +173,7 @@ https://github.com/bitcoin/bitcoin/blob/master/doc/build-openbsd.md
|
||||
|
||||
You will have to add the serialize, datetime, and regex modules to Boost when building as they are needed by Monero.
|
||||
|
||||
To build: "env CC=egcc CXX=eg++ CPP=ecpp DEVELOPER_LOCAL_TOOLS=1 BOOST_ROOT=/path/to/the/boost/you/built make"
|
||||
|
||||
You may optionally build it statically by using the correct target.
|
||||
To build: "env CC=egcc CXX=eg++ CPP=ecpp DEVELOPER_LOCAL_TOOLS=1 BOOST_ROOT=/path/to/the/boost/you/built make release-static-64"
|
||||
|
||||
## Building Documentation
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user