summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-10-25 03:05:49 +0000
committerCoprDistGit <infra@openeuler.org>2024-10-25 03:05:49 +0000
commit36e0c27298a5f9d680385b60df3a84e82d60b16b (patch)
tree74b6674afbff180cae6c4c1a7bbd550ae0a1da2b
parentd83fa8360c587fda79e9cbed0430f40120ad20d8 (diff)
automatic import of python3
-rw-r--r--python3.spec6
1 files changed, 6 insertions, 0 deletions
diff --git a/python3.spec b/python3.spec
index 1ab4d98..0daa0fc 100644
--- a/python3.spec
+++ b/python3.spec
@@ -187,6 +187,12 @@ rm -r Modules/expat
rm Lib/ensurepip/_bundled/*.whl
rm configure pyconfig.h.in
+export CFLAGS="%{extension_cflags} %{?extra_cflags} -D_GNU_SOURCE -fPIC -fwrapv -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2"
+export CFLAGS_NODIST="%{build_cflags} %{?extra_cflags} -D_GNU_SOURCE -fPIC -fwrapv"
+export CXXFLAGS="%{extension_cxxflags} -D_GNU_SOURCE -fPIC -fwrapv"
+export CPPFLAGS="$(pkg-config --cflags-only-I libffi)"
+export OPT="%{extension_cflags} %{?extra_cflags} -D_GNU_SOURCE -fPIC -fwrapv"
+
%build
autoconf
autoheader