summaryrefslogtreecommitdiffstats
path: root/patches/01_pass-some-dirs-to-child-makes.patch
blob: 88fd159a47a0983894e22c82e305fabe26f6bd54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Author: "P. J. McDermott" <pj@pehjota.net>
Subject: Pass some dir paths to child makes

Some paths that we want to change (for FHS sanity and/or multiarch hackery) are
hardcoded in the configure scripts and makefiles.

If we just get the top-level makefile to pass them to the child make processes,
we can simply set these path macros and call make once.

See `README.source` for a possible alternative solution.

diff -Naur src.orig/Makefile.in src/Makefile.in
--- src.orig/Makefile.in	2011-11-21 06:56:20.000000000 -0500
+++ src/Makefile.in	2013-09-08 17:30:10.954073797 -0400
@@ -705,7 +705,10 @@
 	"sharedstatedir=$(sharedstatedir)" \
 	"sysconfdir=$(sysconfdir)" \
 	"tooldir=$(tooldir)" \
+	"scriptdir=$(scriptdir)" \
 	"build_tooldir=$(build_tooldir)" \
+	"bfdlibdir=$(bfdlibdir)" \
+	"bfdincludedir=$(bfdincludedir)" \
 	"target_alias=$(target_alias)" \
 	"AWK=$(AWK)" \
 	"BISON=$(BISON)" \