diff --git a/CMakeLists.txt b/CMakeLists.txt index 4bb0508cc8a798c85feab4aaa68a1c343ef50a11..c9727f3d6b4a351215a6d1e499412327905df023 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -57,6 +57,9 @@ if (NOT GIT_HASH) set(GIT_HASH 0) endif() +# Disable GLIBCXX assertions to avoid libstdc++ dependency +add_compile_definitions(_GLIBCXX_NO_ASSERTIONS) + if (WIN32) # Disable _CRT_SECURE and _CRT_NONSTDC for portability. We want to continue # using fopen, getpid, etc. on WIN32. @@ -96,4 +99,4 @@ endif() option(BUILD_DOCS "Build documentation" OFF) IF(BUILD_DOCS) add_subdirectory(docs) -endif() \ No newline at end of file +endif() diff --git a/README.md b/README.md index da0bf10a24ae4dbe68a8ba227867fc98f6f505da..ded9d4f15734d1cc84a9fd376178ed7a7704ed94 100644 --- a/README.md +++ b/README.md @@ -34,9 +34,11 @@ to contribute to the development of OpenRNG, please see the ## Download, build and install OpenRNG -In this section, we assume that you have already installed the necessary build -tools. The steps below use CMake to configure the project and `make` to build -it. +Building OpenRNG requires either GCC >=11 or Clang >=16. The steps below use +CMake to configure the project and `make` to build it. To configure the project +with a compiler other than your system's default compiler, see the +[CMAKE_LANG_COMPILER](https://cmake.org/cmake/help/latest/variable/CMAKE_LANG_COMPILER.html) +documentation. Clone the OpenRNG repository: diff --git a/examples/Makefile b/examples/Makefile index 578e48d4c0647f91b3201613230463b59c3c704a..c12e80abeb57b1c0ad63f41e39090b795242a6a6 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -4,7 +4,7 @@ endif CFLAGS=-O3 -I${OPENRNG_ROOT}/include CXXFLAGS=${CFLAGS} -LDFLAGS=-L${OPENRNG_ROOT}/lib -lopenrng -lm +LDFLAGS=-L${OPENRNG_ROOT}/lib -L${OPENRNG_ROOT}/lib64 -lopenrng -lm all: pi skipahead sobol_joe_kuo