diff options
author | Max Rees <maxcrees@me.com> | 2020-06-14 00:52:37 -0500 |
---|---|---|
committer | Max Rees <maxcrees@me.com> | 2020-06-14 00:52:37 -0500 |
commit | cc8b68b5a796ff131289930ead8f4b0d0812b348 (patch) | |
tree | 14c2ddb945975f98747017d6a7575f6af0a875c7 /system/unzip/cflags.patch | |
parent | 4e53c51f591cbd62817c797c10d240c008182ab3 (diff) | |
download | packages-cc8b68b5a796ff131289930ead8f4b0d0812b348.tar.gz packages-cc8b68b5a796ff131289930ead8f4b0d0812b348.tar.bz2 packages-cc8b68b5a796ff131289930ead8f4b0d0812b348.tar.xz packages-cc8b68b5a796ff131289930ead8f4b0d0812b348.zip |
system/unzip: miscellaneous fixes
* Make sure CFLAGS are respected by setting LOCAL_UNZIP instead of
LOCAL_ZIP and unsetting CFLAGS_OPT in the configure script.
* Don't strip too early by setting STRIP to a no-op and unsetting
LFLAGS2 in the configure script.
* Cherry-pick a patch from Fedora to fix format warnings.
* Fix unzipsfx test on 32-bit arches by casting a literal argument to
the correct type.
Diffstat (limited to 'system/unzip/cflags.patch')
-rw-r--r-- | system/unzip/cflags.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/system/unzip/cflags.patch b/system/unzip/cflags.patch new file mode 100644 index 000000000..f85192155 --- /dev/null +++ b/system/unzip/cflags.patch @@ -0,0 +1,20 @@ +--- unzip60/unix/configure 2009-04-16 14:25:12.000000000 -0500 ++++ unzip60/unix/configure 2020-06-13 22:59:57.259771113 -0500 +@@ -17,7 +17,7 @@ CFLAGSR=${CFLAGS} + IZ_BZIP2=${3} + CFLAGS="${CFLAGS} -I. -DUNIX" + LFLAGS1="" +-LFLAGS2="-s" ++LFLAGS2="" + LN="ln -s" + + CFLAGS_OPT='' +@@ -130,6 +130,8 @@ _EOF_ + fi + fi + ++CFLAGS_OPT="" ++ + # optimization flags + if test -n "${CFLAGS_OPT}"; then + CFLAGSR="${CFLAGSR} ${CFLAGS_OPT}" |