1
0
mirror of https://github.com/altlinux/admc.git synced 2025-03-16 14:50:13 +03:00

fix smbclient stack smashing on 32bit systems

closes #294
This commit is contained in:
Dmitry Degtyarev 2021-09-23 12:58:45 +04:00
parent 7474e183fd
commit a8ffee6c1c

View File

@ -5,7 +5,9 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
add_compile_options(-Wall -Wshadow -Werror=switch)
# NOTE: neeed largefile options to prevent problems with
# smbclient on 32bit systems
add_compile_options(-Wall -Wshadow -Werror=switch -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64)
# You can get version from spec by first finding Versions keyword.
# After that you can use awk to split line by : and then select second part of it.