Browse Source

Fix libmagic detection under macos-universal builds

tags/v2.3.0-RC1
falkTX 3 years ago
parent
commit
f6a7d9c9d0
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      source/Makefile.mk

+ 2
- 1
source/Makefile.mk View File

@@ -359,7 +359,8 @@ ifeq ($(shell $(PKG_CONFIG) --exists libmagic && echo true),true)
HAVE_LIBMAGIC = true
else
# old libmagic versions don'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 /dev/null 2>/dev/null && echo true)
CFLAGS_WITHOUT_ARCH = $(subst -arch arm64,,$(CFLAGS))
HAVE_LIBMAGIC = $(shell echo '\#include <magic.h>' | $(CC) $(CFLAGS_WITHOUT_ARCH) -x c -w -c - -o /dev/null 2>/dev/null && echo true)
endif

endif


Loading…
Cancel
Save