ports/textproc/mupdf/patches/patch-Makerules

40 lines
1.2 KiB
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Index: Makerules
--- Makerules.orig
+++ Makerules
@@ -83,8 +83,8 @@ ifeq ($(build),debug)
CFLAGS += -pipe -g
LDFLAGS += -g
else ifeq ($(build),release)
- CFLAGS += -pipe -O2 -DNDEBUG -fomit-frame-pointer
- LDFLAGS += $(LDREMOVEUNREACH) -Wl,-s
+ CFLAGS += -DNDEBUG
+ LDFLAGS += $(LDREMOVEUNREACH)
else ifeq ($(build),small)
CFLAGS += -pipe -Os -DNDEBUG -fomit-frame-pointer
LDFLAGS += $(LDREMOVEUNREACH) -Wl,-s
@@ -168,8 +168,8 @@ else ifeq ($(OS),MACOS)
endif
endif
-else ifeq ($(OS),Linux)
- HAVE_OBJCOPY := yes
+else
+ HAVE_OBJCOPY ?= yes
ifeq ($(shell pkg-config --exists freetype2 && echo yes),yes)
SYS_FREETYPE_CFLAGS := $(shell pkg-config --cflags freetype2)
@@ -230,10 +230,10 @@ else ifeq ($(OS),Linux)
X11_LIBS := $(shell pkg-config --libs x11 xext)
endif
- HAVE_LIBCRYPTO := $(shell pkg-config --exists 'libcrypto >= 1.1.0' && echo yes)
+ HAVE_LIBCRYPTO := yes
ifeq ($(HAVE_LIBCRYPTO),yes)
- LIBCRYPTO_CFLAGS := $(shell pkg-config --cflags libcrypto) -DHAVE_LIBCRYPTO
- LIBCRYPTO_LIBS := $(shell pkg-config --libs libcrypto)
+ LIBCRYPTO_CFLAGS := -DHAVE_LIBCRYPTO
+ LIBCRYPTO_LIBS := -lcrypto
endif
HAVE_PTHREAD := yes