void-packages/srcpkgs/zulucrypt/patches/fix-cflags.patch

27 lines
1011 B
Diff

Index: external_libraries/tcplay/CMakeLists.txt
===================================================================
--- a/external_libraries/tcplay/CMakeLists.txt
+++ b/external_libraries/tcplay/CMakeLists.txt
@@ -13,7 +13,7 @@ set (SRCS_LINUX crypto-gcrypt.c)
set (CFLAGS_LINUX "-D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE")
set (CFLAGS_WARN "-w")
set (CFLAGS_DEBUG "-O0 -g3 -DDEBUG")
-set (CFLAGS_OPT "-O3")
+set (CFLAGS_OPT "")
set (CFLAGS_VER "-DMAJ_VER=${VERSION_MAJOR} -DMIN_VER=${VERSION_MINOR}")
set (CFLAGS_COMMON "-std=c99 -fPIC ${CFLAGS_LINUX} ${CFLAGS_WARN} ${CFLAGS_VER}")
if ($ENV{DEBUG})
Index: external_libraries/tcplay/Makefile.classic
===================================================================
--- a/external_libraries/tcplay/Makefile.classic
+++ b/external_libraries/tcplay/Makefile.classic
@@ -47,8 +47,6 @@ COMMON_CFLAGS= $(WARNFLAGS) -fPIC $(VER_
ifeq ($(DEBUG), yes)
COMMON_CFLAGS+= -O0 -g -DDEBUG
-else
- COMMON_CFLAGS+= -O3
endif
ifeq (${SYSTEM}, linux)