#14265: Compile Python as C99
----------------------------------+-----------------------------------------
Reporter: jdemeyer | Owner: tbd
Type: defect | Status: needs_review
Priority: blocker | Milestone: sage-5.9
Component: packages | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers:
Authors: Jeroen Demeyer | Merged in:
Dependencies: | Stopgaps:
----------------------------------+-----------------------------------------
Comment (by jdemeyer):
Replying to [comment:3 leif]:
> Note that this also affects any Python extension module built with
distutils, as the latter (by default) use the flags Python was built with.
(This also applies to C++ files btw. ...)
True, it applies to C++ also, but this doesn't seem to cause problems:
{{{
gcc -fno-strict-aliasing -std=gnu99 -fwrapv -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -fPIC -I/release/merger/sage-5.9.beta0/local/include
-I/release/merger/sage-5.9.beta0/local/include/csage
-I/release/merger/sage-5.9.beta0/devel/sage/sage/ext
-I/release/merger/sage-5.9.beta0/local/include/python2.7 -c
sage/rings/number_field/number_field_element.cpp -o
build/temp.linux-x86_64-2.7/sage/rings/number_field/number_field_element.o
-w
cc1plus: warning: command line option '-Wstrict-prototypes' is valid for
C/ObjC but not for C++ [enabled by default]
g++ -pthread -shared -L/release/merger/sage-5.9.beta0/local/lib
build/temp.linux-x86_64-2.7/sage/rings/number_field/number_field_element.o
-L/release/merger/sage-5.9.beta0/local/lib
-L/release/merger/sage-5.9.beta0/local/lib -lcsage -lntl -lgmp -lstdc++
-lntl -lpython2.7 -o
build/lib.linux-x86_64-2.7/sage/rings/number_field/number_field_element.so
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14265#comment:8>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.