mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
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:
@@ -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@")
|
||||
|
||||
Reference in New Issue
Block a user