From 2f797b7f24ec7916f920347144e8ed9ebcd268a0 Mon Sep 17 00:00:00 2001 From: juanfra Date: Wed, 1 Aug 2018 22:39:13 +0000 Subject: [PATCH] Remove the (optimize("Os") line. --- www/py-multidict/Makefile | 3 ++- .../patches/patch-multidict__multidict_c | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 www/py-multidict/patches/patch-multidict__multidict_c diff --git a/www/py-multidict/Makefile b/www/py-multidict/Makefile index f4d564c4c71..7eaab2858f9 100644 --- a/www/py-multidict/Makefile +++ b/www/py-multidict/Makefile @@ -1,8 +1,9 @@ -# $OpenBSD: Makefile,v 1.4 2018/04/26 13:05:38 danj Exp $ +# $OpenBSD: Makefile,v 1.5 2018/08/01 22:39:13 juanfra Exp $ COMMENT = multidict implementation MODPY_EGG_VERSION = 4.2.0 +REVISION = 0 DISTNAME = multidict-${MODPY_EGG_VERSION} PKGNAME = py-${DISTNAME} CATEGORIES = www devel diff --git a/www/py-multidict/patches/patch-multidict__multidict_c b/www/py-multidict/patches/patch-multidict__multidict_c new file mode 100644 index 00000000000..b76384c63a1 --- /dev/null +++ b/www/py-multidict/patches/patch-multidict__multidict_c @@ -0,0 +1,16 @@ +$OpenBSD: patch-multidict__multidict_c,v 1.1 2018/08/01 22:39:13 juanfra Exp $ + +Os breaks the build on GCC4 platforms. + +Index: multidict/_multidict.c +--- multidict/_multidict.c.orig ++++ multidict/_multidict.c +@@ -20116,8 +20116,6 @@ static int __Pyx_modinit_function_import_code(void) { + #ifndef CYTHON_SMALL_CODE + #if defined(__clang__) + #define CYTHON_SMALL_CODE +-#elif defined(__GNUC__) +- #define CYTHON_SMALL_CODE __attribute__((optimize("Os"))) + #else + #define CYTHON_SMALL_CODE + #endif