Home GnuPG

Fix building error with '-O2' in sysroot path
7d9817ca935aUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Fix building error with '-O2' in sysroot path

* cipher/Makefile.am (o_flag_munging): Tweak the sed script.
* random/Makefile.am (o_flag_munging): Ditto.

Characters like '-O2' or '-Ofast' will be replaced by '-O1' and '-O0'
respectively when compiling cipher and random in the filesystem
paths as well if they happen to contain '-O2' or '-Ofast

If we are cross compiling libgcrypt and sysroot contains such
characters, we would
get compile errors because the sysroot path has been modified.

Fix this by adding blank spaces and tabs before the original matching
pattern in the sed command.

ChangeLog entries added by wk

Note that there is also the configure option --disable-O-flag-munging;
see the README.

  • Signed-off-by: simit.ghane <simit.ghane@lge.com>

Details

Provenance
simit.ghaneAuthored on Tue, May 7, 10:39 AM
wernerCommitted on Tue, May 7, 12:18 PM
Parents
rC75e9bcccb69a: mpi: Fix ECC computation on hppa.
Branches
Unknown
Tags
Unknown
References
LIBGCRYPT-1.10-BRANCH

Event Timeline