]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
libgcrypt: Fix building error with '-O2' in sysroot path
authorsimit.ghane <simit.ghane@lge.com>
Fri, 28 Jun 2024 05:07:00 +0000 (10:37 +0530)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 2 Jul 2024 21:29:10 +0000 (22:29 +0100)
commitecd26bbba36ad715c2a0f20475ebc977ea94746c
treead48ab7b7e0c5492fa0b59e3bab2641fe7032cee
parentc7a4e7e294992acc589c62adcaf6cd32659f2f9b
libgcrypt: Fix building error with '-O2' in sysroot path

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.

It is difficult to control -O1 for cipher and -O0 for random
at the same time in OE environment along with patch file.
So, keeping same change as it is.

Signed-off-by: simit.ghane <simit.ghane@lge.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-support/libgcrypt/files/0002-libgcrypt-fix-building-error-with-O2-in-sysroot-path.patch