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

27 lines
1,013 B
Diff
Raw Normal View History

2021-03-28 03:49:25 +00:00
Index: external_libraries/tcplay/CMakeLists.txt
===================================================================
--- external_libraries/tcplay/CMakeLists.txt.orig
+++ 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
===================================================================
--- external_libraries/tcplay/Makefile.classic.orig
+++ 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)