Compare commits
16 Commits
Author | SHA256 | Date | |
---|---|---|---|
58d71f1670 | |||
044590745f | |||
9eff96ec06 | |||
6ae59febb3 | |||
a218c31e40 | |||
280e931db5 | |||
aac3b09333 | |||
a0c420084c | |||
9f6cc2bc3e | |||
800cb2e208 | |||
976abd56cf | |||
274e50cb8c | |||
|
46a749378e | ||
|
95e0c6d010 | ||
1efb8234ca | |||
|
cf1a00eeda |
28
159.patch
28
159.patch
@@ -1,28 +0,0 @@
|
||||
From df2857fff3c492692ca09f31699972970042bc07 Mon Sep 17 00:00:00 2001
|
||||
From: Michael Karcher <github@mkarcher.dialup.fu-berlin.de>
|
||||
Date: Wed, 12 Jun 2024 22:42:45 +0200
|
||||
Subject: [PATCH] Define _POSIX_C_SOURCE for crfsuite source files
|
||||
|
||||
gcc-14 has "-Werror=implicit-function-declaration" enabled by default.
|
||||
crfsuite uses posix_memalign which only gets defined when _POSIX_C_SOURCE is
|
||||
defined, so make sure the flag is set when compiling crfsuite.
|
||||
|
||||
On the other hand, openSUSE Tumbleweed has _POSIX_C_SOURCE defined
|
||||
in pyconfig.h, so you must not add "-D_POSIX_C_SOURCE" when compiling
|
||||
the python binding source code. So add it only for the subdir crfsuite.
|
||||
---
|
||||
setup.py | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/setup.py b/setup.py
|
||||
index 8036363..f0dc370 100755
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -30,6 +30,7 @@ def build_extensions(self):
|
||||
_compile = c._compile
|
||||
|
||||
def c_compile(obj, src, ext, cc_args, extra_postargs, pp_opts):
|
||||
+ cc_args = cc_args + ['-D_POSIX_C_SOURCE=200112L'] if src.startswith('crfsuite/') else cc_args
|
||||
cc_args = cc_args + ['-std=c99'] if src.endswith('.c') else cc_args
|
||||
return _compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
|
||||
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f38524631e2b533341f10f2c77689270dc6ecd5985495dccf7aa37b1045bc2e5
|
||||
size 478262
|
Reference in New Issue
Block a user