diff options
Diffstat (limited to 'archivers/openzl/files')
| -rw-r--r-- | archivers/openzl/files/patch-Makefile | 13 | ||||
| -rw-r--r-- | archivers/openzl/files/patch-build_make_zldefs.make | 13 | ||||
| -rw-r--r-- | archivers/openzl/files/patch-src_openzl_shared_portability.h | 15 |
3 files changed, 41 insertions, 0 deletions
diff --git a/archivers/openzl/files/patch-Makefile b/archivers/openzl/files/patch-Makefile new file mode 100644 index 000000000000..58b2d35aa8f0 --- /dev/null +++ b/archivers/openzl/files/patch-Makefile @@ -0,0 +1,13 @@ +--- Makefile.orig 2025-10-08 09:05:16 UTC ++++ Makefile +@@ -92,8 +92,8 @@ SDDL_COMPILER_CXXOBJS := $(filter-out %main.o, $(call + TRAINING_TEST_CXXOBJS := $(call cxx_objs,$(TRAINING_TEST_DIRS)) + SDDL_COMPILER_CXXOBJS := $(filter-out %main.o, $(call cxx_objs,$(SDDL_COMPILER_DIR))) + +-zli: CFLAGS += -O3 +-zli: CXXFLAGS += -O3 ++zli: CFLAGS += ++zli: CXXFLAGS += + $(eval $(call cxx_program,zli, \ + cli/zli.o \ + $(CLI_CXXOBJS) \ diff --git a/archivers/openzl/files/patch-build_make_zldefs.make b/archivers/openzl/files/patch-build_make_zldefs.make new file mode 100644 index 000000000000..3ad45b9ce3c2 --- /dev/null +++ b/archivers/openzl/files/patch-build_make_zldefs.make @@ -0,0 +1,13 @@ +--- build/make/zldefs.make.orig 2025-10-08 08:51:15 UTC ++++ build/make/zldefs.make +@@ -21,8 +21,8 @@ CPPFLAGS += -I. -Iinclude -Isrc -Icpp/include -Icpp/sr + + # base compilation flags + CPPFLAGS += -I. -Iinclude -Isrc -Icpp/include -Icpp/src +-CFLAGS += -O1 -std=c11 # code must be compliant with C11 +-CXXFLAGS += -O1 -std=c++1z # for gtests ++CFLAGS += -std=c11 # code must be compliant with C11 ++CXXFLAGS += -std=c++1z # for gtests + DEBUGFLAGS ?= -g \ + -Wall -Wcast-qual -Wcast-align -Wshadow \ + -Wstrict-aliasing=1 -Wundef -Wpointer-arith -Wvla -Wformat=2 \ diff --git a/archivers/openzl/files/patch-src_openzl_shared_portability.h b/archivers/openzl/files/patch-src_openzl_shared_portability.h new file mode 100644 index 000000000000..d15f9c837dde --- /dev/null +++ b/archivers/openzl/files/patch-src_openzl_shared_portability.h @@ -0,0 +1,15 @@ +--- src/openzl/shared/portability.h.orig 2025-10-08 09:01:34 UTC ++++ src/openzl/shared/portability.h +@@ -211,10 +211,11 @@ ZL_BEGIN_C_DECLS + // Detect IEEE 754 floating point support. + // Apple doesn't define __STDC_IEC_559__, but supports IEEE 754. + // MinGW doesn't define __STDC_IEC_559__, but supports IEEE 754. ++// FreeBSD doesn't define __STDC_IEC_559__, but supports IEEE 754. + #if (defined(__STDC_IEC_559__) && __STDC_IEC_559__) \ + || (defined(__STDC_IEC_60559_BFP__) \ + && __STDC_IEC_60559_BFP__ >= 202311L) \ +- || defined(__APPLE__) || defined(__MINGW32__) ++ || defined(__APPLE__) || defined(__MINGW32__) || defined(__FreeBSD__) + # define ZL_HAS_IEEE_754 1 + #else + # define ZL_HAS_IEEE_754 0 |
