Page MenuHome GnuPG

libgcrypt's cipher/Makefile fails to take into account gcc 4.6 -Ofast flag
Closed, ResolvedPublic

Description

Setting "-Ofast" in the CFLAGS for configure, then trying to make libgcrypt
results in cipher/Makefile's o_flag_munging command changing "-Ofast" (a valid
gcc flag) to "-O1fast" (an invalid gcc flag), causing the build to fail.

I worked around this by changing the line to
o_flag_munging = sed -e 's/-O([2-9s]|fast)*/-O1/g'

Event Timeline

Score_Under added projects: libgcrypt, Bug Report.
Score_Under set External Link to http://ftp.heanet.ie/mirrors/ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.5.0.tar.gz.
Score_Under added a subscriber: Score_Under.

Done in commit d3132553 for 1.5. Needs to be fixed in master.

werner claimed this task.
werner removed projects: forwardport, In Progress.

Fixed in master.