This should fix compilation errors on 32-bit architectures.
To make this change effective for parse-dynparts, this change
sets CXX flags to be the same as C flags.
Change-Id: Ibf345313815285241c4998cd700d2c2b5ae17867
# reboot
SET(REBOOT_BINARY_NAME "reboot")
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -Wall -fPIE")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -Wall -fPIE -D_FILE_OFFSET_BITS=64")
+SET(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS}")
SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -pie")
AUX_SOURCE_DIRECTORY(${REBOOT_SRC_DIR} REBOOT_SOURCES)
INSTALL(TARGETS ${REBOOT_BINARY_NAME} DESTINATION ${INITRD_DIR}/usr/sbin)
# parse-dynparts
-add_subdirectory(src/parse-dynparts)
\ No newline at end of file
+add_subdirectory(src/parse-dynparts)