z80ex: hardening

This commit is contained in:
Đoàn Trần Công Danh 2021-03-27 19:29:31 +07:00
parent 84b80b4e17
commit 8743de20d1
2 changed files with 15 additions and 2 deletions

View file

@ -0,0 +1,13 @@
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt.orig
+++ CMakeLists.txt
@@ -11,7 +11,7 @@ option (OPSTEP_FAST_AND_ROUGH "Fast and
#ALL_CFLAGS := -fPIC -fno-common -ansi -pedantic -Wall -pipe -O2 -I. -I./include
if (CMAKE_COMPILER_IS_GNUCC)
- set (CMAKE_C_FLAGS "-fPIC -fno-common -ansi -pedantic -Wall -pipe -O2")
+ set (CMAKE_C_FLAGS "-fPIC -fno-common -ansi -pedantic -Wall -pipe ${CMAKE_C_FLAGS}")
endif ()
include_directories(BEFORE . include)

View file

@ -1,11 +1,11 @@
# Template file for 'z80ex'
pkgname=z80ex
version=1.1.21
revision=1
revision=2
build_style=cmake
short_desc="ZiLOG Z80 CPU emulation library"
maintainer="Diogo Leal <diogo@diogoleal.com>"
license="GPL-2"
license="GPL-2.0-only"
homepage="https://sourceforge.net/projects/z80ex/"
distfiles="${SOURCEFORGE_SITE}/project/z80ex/z80ex/${version}/z80ex-${version}.tar.gz"
checksum=6f5e521d068a614b41e10180ad4ae45b1bc258ec28c962543feb9078856c2530