Fix for modified zconf.h on Gentoo.

Issue #116
This commit is contained in:
John McNamara 2017-08-12 02:18:39 +01:00
parent 469162421b
commit 32be6b90f5
2 changed files with 12 additions and 1 deletions

View file

@ -32,6 +32,12 @@ endif
# Flags passed to compiler.
CFLAGS += -g -O3 -Wall -Wextra -pedantic -ansi
# Fix for modified zconf.h on Gentoo.
ifneq (,$(findstring gentoo, $(shell uname -sr)))
CFLAGS += -DOF=_Z_OF
endif
# Ignore icc remarks about inlining limits.
ifeq ($(CC),icc)
CFLAGS +=-diag-disable=11074,11076

View file

@ -9,7 +9,7 @@ ifdef V
Q=
endif
UNAME := $(shell uname)
UNAME := $(shell uname -sr)
# Check for MinGW/MinGW64/Cygwin environments.
ifneq (,$(findstring MINGW, $(UNAME)))
@ -32,6 +32,11 @@ CC = gcc
CFLAGS += -DUSE_FILE32API
endif
# Fix for modified zconf.h on Gentoo.
ifneq (,$(findstring gentoo, $(UNAME)))
CFLAGS += -DOF=_Z_OF
endif
all: ioapi.o zip.o ioapi.so zip.so
%.o : %.c