summaryrefslogtreecommitdiff
path: root/sysutils/file/patches/patch-magic_Makefile.in
blob: 15ed1f917cab306de6a37f6ec5777fa0c336fd5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-magic_Makefile.in,v 1.2 2021/12/27 23:25:08 schmonz Exp $

Use the just-built libmagic, not whatever might be already installed.

--- magic/Makefile.in.orig	2021-03-31 00:22:07.000000000 +0000
+++ magic/Makefile.in
@@ -850,7 +850,7 @@ ${MAGIC}: $(EXTRA_DIST) $(FILE_COMPILE_D
 		exit 1; \
 	    fi; \
 	  fi)
-	$(FILE_COMPILE) -C -m magic
+	chmod +x myfile && ./myfile magic
 	@rm -fr magic
 
 # Tell versions [3.59,3.63) of GNU make to not export all variables.