summaryrefslogtreecommitdiffstats
path: root/package/axfsutils/0002-use-ldflags.patch
diff options
context:
space:
mode:
authorYann E. MORIN <yann.morin.1998@free.fr>2015-11-13 22:48:47 +0100
committerPeter Korsgaard <peter@korsgaard.com>2015-11-17 09:29:24 +0100
commitcb8b5c27b2eaca31e83603417dd7a7269504cbac (patch)
tree5d7dc785ca1e8801d3ec5f659526e1789edcb98f /package/axfsutils/0002-use-ldflags.patch
parent7caf46439c684340a494e3aed345c479ec6927c2 (diff)
downloadbuildroot-cb8b5c27b2eaca31e83603417dd7a7269504cbac.tar.gz
buildroot-cb8b5c27b2eaca31e83603417dd7a7269504cbac.zip
package/axfsutils: fix Makefile
mkfs.axfs uses zlib, but does not have an rpath to our host dir. That's because: - we're not passing our host CFLAGS or LDFLAGS - it is forcibly setting CFLAGS in the Makefile, overriding anything specified by the user - it is not using LDFLAGS at all Add two patches so that CFLAGS and LDFLAGS from the environment are used if present. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Tested-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/axfsutils/0002-use-ldflags.patch')
-rw-r--r--package/axfsutils/0002-use-ldflags.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/package/axfsutils/0002-use-ldflags.patch b/package/axfsutils/0002-use-ldflags.patch
new file mode 100644
index 0000000000..20e03a9bb5
--- /dev/null
+++ b/package/axfsutils/0002-use-ldflags.patch
@@ -0,0 +1,20 @@
+Makefile: use LDFLAGS as provided by the user
+
+In some circumstances, the user may want to pass some LDFLAGS, like
+-L flags to point to the zlib location if it was not installed in a
+standard location.
+
+Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
+
+diff -durN a/mkfs.axfs-legacy/Makefile b/mkfs.axfs-legacy/Makefile
+--- a/mkfs.axfs-legacy/Makefile
++++ b/mkfs.axfs-legacy/Makefile
+@@ -6,7 +6,7 @@
+ all: mkfs.axfs
+
+ mkfs.axfs: $(MKFSOBJS)
+- $(CC) $(CFLAGS) -o mkfs.axfs $(MKFSOBJS) -lz
++ $(CC) $(CFLAGS) $(LDFLAGS) -o mkfs.axfs $(MKFSOBJS) -lz
+
+ clean_mkfs.axfs:
+ rm -rf $(MKFSOBJS) mkfs.axfs
OpenPOWER on IntegriCloud