Permalink
Browse files

Add cmake option to make a "Reproducible Build" (#109)

Signed-off-by: Burt P <pburt0@gmail.com>
  • Loading branch information...
bp0 authored and lpereira committed Jul 25, 2017
1 parent 227252e commit 8e4746423c20b525671998b1bc94b3b6d8ec78d6
Showing with 3 additions and 4 deletions.
  1. +0 −1 CMakeLists.txt
  2. +1 −1 config.h.cmake
  3. +2 −2 hardinfo/hardinfo.c
View
@@ -63,7 +63,6 @@ if (OVRDTRROOT)
add_definitions(-DDTR_ROOT=${OVRDTRROOT})
message(STATUS "/proc/device-tree override: ${OVRDTRROOT}")
endif()
add_definitions(-DLOCALEDIR="${CMAKE_INSTALL_PREFIX}/share/locale")
message(STATUS "LOCALEDIR = ${CMAKE_INSTALL_PREFIX}/share/locale")
View
@@ -6,7 +6,7 @@
#define ARCH "ARCH_@HARDINFO_ARCH@"
#define OS "@HARDINFO_OS@"
#define PLATFORM OS "-" ARCH
#define KERNEL "@CMAKE_SYSTEM_VERSION@"
#define KERNEL ""
#define HOSTNAME ""
#define ARCH_@HARDINFO_ARCH@
View
@@ -52,10 +52,10 @@ int main(int argc, char **argv)
" BinReloc enabled: %s\n"
" Data prefix: %s\n"
" Library prefix: %s\n"
" Compiled on: %s %s (%s)\n"),
" Compiled for: %s\n"),
RELEASE ? _("Yes") : "No (" VERSION ")", ARCH,
ENABLE_BINRELOC ? _("Yes") : _("No"),
PREFIX, LIBPREFIX, PLATFORM, KERNEL, HOSTNAME);
PREFIX, LIBPREFIX, PLATFORM);
DEBUG(" Debugging is enabled.");

0 comments on commit 8e47464

Please sign in to comment.