Disable non-PIC assembly code on i386 and use the same code as other archs.

This commit is contained in:
naddy 2018-11-09 16:23:02 +00:00
parent e66808d284
commit 210cac92fa
2 changed files with 18 additions and 2 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.40 2015/09/21 10:39:47 sthen Exp $
# $OpenBSD: Makefile,v 1.41 2018/11/09 16:23:02 naddy Exp $
COMMENT= create/update ZIP files compatible with PKZip(tm)
VERSION= 3.0
REVISION= 0
REVISION= 1
DISTNAME= zip${VERSION:S/.//}
PKGNAME= zip-${VERSION}

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-match_S,v 1.1 2018/11/09 16:23:02 naddy Exp $
Do not use i386 non-PIC assembly code.
Index: match.S
--- match.S.orig
+++ match.S
@@ -18,6 +18,8 @@
/* This file is NOT used in conjunction with zlib. */
#ifndef USE_ZLIB
+#error "do not use assembly code"
+
/* Preprocess with -DNO_UNDERLINE if your C compiler does not prefix
* external symbols with an underline character '_'.
*/