summaryrefslogtreecommitdiffhomepage
path: root/patches/infounzip.local.patch
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2019-06-16 16:57:55 +0000
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2019-06-16 16:57:55 +0000
commit1daa6ba6b88f7cb5eb37a6d62ff56b4511d89412 (patch)
tree23cb81692d6627ccf208244bd6bbbbcef5acb67c /patches/infounzip.local.patch
parent5449c3b50a63a78ec687406ce6ab3fc8e76c1306 (diff)
downloadmidipix_build-1daa6ba6b88f7cb5eb37a6d62ff56b4511d89412.tar.bz2
midipix_build-1daa6ba6b88f7cb5eb37a6d62ff56b4511d89412.tar.xz
vars/build.vars:info{,un}zip:${PKG_CFLAGS_BUILD_EXTRA}: inherit from ${NATIVE_PACKAGES_CFLAGS_CONFIGURE}.
patches/info{,un}zip{,_minipix}.local.patch: correctly inherit $(CFLAGS) & pass $(LDFLAGS).
Diffstat (limited to 'patches/infounzip.local.patch')
-rw-r--r--patches/infounzip.local.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/patches/infounzip.local.patch b/patches/infounzip.local.patch
new file mode 100644
index 00000000..f8d3c1c6
--- /dev/null
+++ b/patches/infounzip.local.patch
@@ -0,0 +1,24 @@
+--- infounzip/Makefile.dist 2019-04-26 18:39:08.660000000 +0000
++++ infounzip/Makefile 2019-06-16 16:37:56.980000000 +0000
+@@ -10,7 +10,7 @@
+ INSTALL_PROGRAM = cp
+ INSTALL_D = mkdir -p
+
+-CFLAGS ?= -I. -DUNIX -DNO_BZIP2_SUPPORT -DLARGE_FILE_SUPPORT -DUNICODE_SUPPORT -DUNICODE_WCHAR -DUNICODE_SUPPORT -DUTF8_MAYBE_NATIVE -DNO_LCHMOD -DHAVE_DIRENT_H -DHAVE_TERMIOS_H -D_MBCS
++override CFLAGS += -I. -DUNIX -DNO_BZIP2_SUPPORT -DLARGE_FILE_SUPPORT -DUNICODE_SUPPORT -DUNICODE_WCHAR -DUNICODE_SUPPORT -DUTF8_MAYBE_NATIVE -DNO_LCHMOD -DHAVE_DIRENT_H -DHAVE_TERMIOS_H -D_MBCS
+ LFLAGS1 ?=
+ LDFLAGS ?=
+
+@@ -38,10 +38,10 @@
+ $(OBJF): $(UNZIP_H)
+
+ unzip: $(OBJU)
+- $(CC) -o unzip $(LFLAGS1) $(OBJU) $(LDFLAGS)
++ $(CC) -o unzip $(LFLAGS1) $(LDFLAGS) $(OBJU)
+
+ funzip: $(OBJF)
+- $(CC) -o funzip $(LFLAGS1) $(OBJF) $(LDFLAGS)
++ $(CC) -o funzip $(LFLAGS1) $(LDFLAGS) $(OBJF)
+
+ UNZIPS = unzip funzip
+