ruby: fix order of CFLAGS

Shuffle the order of the various CFLAGS used when building the Ruby
extension: first the flags from manywarnings (gnulib), then libguestfs
own CFLAGS, and then -DGUESTFS_PRIVATE=1 (so it is not overridden).

This matches also what happens in automake parts, and makes it possible
to override any flags from manywarnings also in the Ruby extension.
This commit is contained in:
Pino Toscano
2017-08-10 15:03:37 +02:00
parent e6e3854b6e
commit 3050a58622

View File

@@ -33,8 +33,9 @@ have_func("rb_define_alloc_func")
have_type("rb_alloc_func_t")
$CFLAGS =
"#{$CFLAGS} @CFLAGS@ -DGUESTFS_PRIVATE=1 " <<
"@WARN_CFLAGS@ @WERROR_CFLAGS@"
"#{$CFLAGS} " <<
"@WARN_CFLAGS@ @WERROR_CFLAGS@ " <<
"@CFLAGS@ -DGUESTFS_PRIVATE=1"
create_header
create_makefile(extension_name, "@abs_srcdir@")