Little improvements

This commit is contained in:
Přemysl Eric Janouch 2017-07-24 03:46:06 +02:00
parent 6e9217e5d0
commit 199c56e141
Signed by: p
GPG Key ID: B715679E3A361BE6
2 changed files with 3 additions and 3 deletions

View File

@ -2,11 +2,11 @@ project (liberty C)
cmake_minimum_required (VERSION 2.8.5) cmake_minimum_required (VERSION 2.8.5)
# Moar warnings # Moar warnings
if ("${CMAKE_C_COMPILER_ID}" MATCHES "GNU" OR CMAKE_COMPILER_IS_GNUC) if ("${CMAKE_C_COMPILER_ID}" MATCHES "GNU" OR CMAKE_COMPILER_IS_GNUCC)
# -Wunused-function is pretty annoying here, as everything is static # -Wunused-function is pretty annoying here, as everything is static
set (wdisabled "-Wno-unused-function -Wno-implicit-fallthrough") set (wdisabled "-Wno-unused-function -Wno-implicit-fallthrough")
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -Wall -Wextra ${wdisabled}") set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -Wall -Wextra ${wdisabled}")
endif ("${CMAKE_C_COMPILER_ID}" MATCHES "GNU" OR CMAKE_COMPILER_IS_GNUC) endif ("${CMAKE_C_COMPILER_ID}" MATCHES "GNU" OR CMAKE_COMPILER_IS_GNUCC)
# Dependencies # Dependencies
set (CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake) set (CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)

View File

@ -14,7 +14,7 @@ fakeroot sh -e <<-EOF
url = $url url = $url
builddate = \`date -u +%s\` builddate = \`date -u +%s\`
packager = $author packager = $author
size = \`du -sb --apparent-size | cut -f1\` size = \`du -sb | cut -f1\`
arch = $arch arch = $arch
END END
cd "$wd" && tar cJf "../$target" .PKGINFO * cd "$wd" && tar cJf "../$target" .PKGINFO *