Merge ~mitchdz/ubuntu/+source/python2.7:mitch/focal-py2-opt into ubuntu/+source/python2.7:ubuntu/focal-devel
Proposed by
Mitchell Dzurick
Status: | Merged |
---|---|
Merged at revision: | fd8dbc570c358f1ebfe27718995581de27d2460c |
Proposed branch: | ~mitchdz/ubuntu/+source/python2.7:mitch/focal-py2-opt |
Merge into: | ubuntu/+source/python2.7:ubuntu/focal-devel |
Diff against target: |
88 lines (+66/-0) 3 files modified
debian/changelog (+7/-0) debian/patches/lp2002043-add-optimization-flags-to-cflags.patch (+58/-0) debian/patches/series.in (+1/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Lena Voytek (community) | Approve | ||
git-ubuntu import | Pending | ||
Review via email: mp+459844@code.launchpad.net |
Description of the change
To post a comment you must log in.
Tested 2.7.18- 1~20.04. 4~focal1
# dpkg -s python2.7 | grep Version 1~20.04. 4~focal1
Version: 2.7.18-
# python2 -c "import sysconfig; print(sysconfig .get_config_ var('CFLAGS' ))" aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug- prefix- map=/build/ python2. 7-aHqux6/ python2. 7-2.7.18= . -fstack- protector- strong -Wformat -Werror= format- security
-fno-strict-
# python2 setup.py build_ext --inplace _UBUNTU_ CFLAGS_ WORKAROUND in your /launchpad. net/bugs/ 2002043 for further context. _UBUNTU_ CFLAGS_ WORKAROUND not detected. linux-x86_ 64-2.7 linux-gnu- gcc -pthread -fno-strict- aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug- prefix- map=/build/ python2. 7-aHqux6/ python2. 7-2.7.18= . -fstack- protector- strong -Wformat -Werror= format- security -fPIC -I/usr/ include/ python2. 7 -c testmodule.c -o build/temp. linux-x86_ 64-2.7/ testmodule. o linux-x86_ 64-2.7 linux-gnu- gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic- functions -Wl,-Bsymbolic- functions -Wl,-z,relro -fno-strict- aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug- prefix- map=/build/ python2. 7-aHqux6/ python2. 7-2.7.18= . -fstack- protector- strong -Wformat -Werror= format- security -Wl,-Bsymbolic- functions -Wl,-z,relro -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug- prefix- map=/build/ python2. 7-aHqux6/ python2. 7-2.7.18= . -fstack- protector- strong -Wformat -Werror= format- security -fPIC build/temp. linux-x86_ 64-2.7/ testmodule. o -o build/lib. linux-x86_ 64-2.7/ test.so
running build_ext
There is a workaround to now inherit optimization CFLAGS when compiling wheels.
To enable this, set APPLY_LP2002043
environment. See LP: https:/
APPLY_LP2002043
building 'test' extension
creating build
creating build/temp.
x86_64-
creating build/lib.
x86_64-
No -02 optimization flag was used, now to use WA
# rm -rf build/ test.so _UBUNTU_ CFLAGS_ WORKAROUND= "" _UBUNTU_ CFLAGS_ WORKAROUND in your /launchpad. net/bugs/ 2002043 for further context. _UBUNTU_ CFLAGS_ WORKAROUND detected, using workaround. linux-x86_ 64-2.7 linux-gnu- gcc -pthread -fno-strict- aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug- prefix- map=/build/ python2. 7-aHqux6/ python2. 7-2.7.18= . -fstack- protector- strong -Wformat -Werror= format- security -fPIC -I/usr/ include/ python2. 7 -c testmodule.c -o build/temp. linux-x86_ 64-2.7/ testmodule. o linux-x86_ 64-2.7 linux-gnu- gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic- functions -Wl,-Bsymbolic- functions -Wl,-z,relro -fno-strict- aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug- prefix- map=/build/ python2. 7-aHqux6/ python2. 7-2.7.18= . -fstack- protector- strong -Wformat -Werror= format- security -Wl,-Bsymbolic- functions -Wl,-z,relro -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug- prefix- map=/build/ python2. 7-aHqux6/ python2. 7-2.7.18= . -fstack- protector- st...
# export APPLY_LP2002043
# python2 setup.py build_ext --inplace
running build_ext
There is a workaround to now inherit optimization CFLAGS when compiling wheels.
To enable this, set APPLY_LP2002043
environment. See LP: https:/
APPLY_LP2002043
building 'test' extension
creating build
creating build/temp.
x86_64-
creating build/lib.
x86_64-