void-packages/srcpkgs/Carla/patches/libmagic.patch
Đoàn Trần Công Danh f6fcc31847 Carla: add patch for gcc 9
Bump revision to trigger rebuild for platform that were cross-compiled.
2020-02-06 21:12:56 +01:00

14 lines
518 B
Diff

--- source/Makefile.mk
+++ source/Makefile.mk
@@ -233,10 +233,7 @@
# Check for optional libs (special non-pkgconfig tests)
ifneq ($(WIN32),true)
-
-# libmagic doesn't have a pkg-config file, so we need to call the compiler to test it
-HAVE_LIBMAGIC = $(shell echo '\#include <magic.h>' | $(CC) $(CFLAGS) -x c -w -c - -o .libmagic-tmp 2>/dev/null && echo true)
-
+HAVE_LIBMAGIC = true
endif
# ---------------------------------------------------------------------------------------------------------------------