mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
sys-block/mbuffer: fix fails to compile
save and restore CFLAGS by using shell syntax
Fixes: 69fee45923
Closes: https://bugs.gentoo.org/948358
Signed-off-by: Z. Liu <zhixu.liu@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/40196
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -23,7 +23,7 @@ index 95d6772..081625a 100644
|
||||
if test -z "$OBJDUMP"; then
|
||||
AC_MSG_WARN([unable to find objdump, which is needed to run tests])
|
||||
else
|
||||
+ m4_pushdef([ORIGINAL_CFLAGS], [$CFLAGS])
|
||||
+ old_CFLAGS="${CFLAGS}"
|
||||
+ CFLAGS="-O0"
|
||||
AC_MSG_CHECKING([linking open() and write() to detect libc names])
|
||||
AC_LINK_IFELSE([
|
||||
@@ -32,7 +32,7 @@ index 95d6772..081625a 100644
|
||||
],
|
||||
[AC_MSG_FAILURE([failed to link open/write test])]
|
||||
)
|
||||
+ CFLAGS="${ORIGINAL_CFLAGS}"
|
||||
+ CFLAGS="${old_CFLAGS}"
|
||||
fi
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user