build: Fix libreaddir-rand to honor global CFLAGS
It's unfortunate that in automake one has to explicitly include the globa `$(AM_CFLAGS)` if one sets `CFLAGS`, and similarly for other variables. I'm trying to use `-fsanitize=address`, and not including it was causing linker failures. We also weren't inheriting the global warnings etc., so I had to fix a decl-after-statement. Closes: #351 Approved by: jlebon
This commit is contained in:
1 parent
d03ae448d0
commit
71e768d230
2 files changed
+3
-3
No files matched your search
@@ -109,12 +109,12 @@ readdir (DIR *dirp)
|
||||
{
|
||||
if (g_random_boolean ())
|
||||
{
|
||||
struct dirent *copy;
|
||||
if (!de)
|
||||
{
|
||||
de = dir_entries_new ();
|
||||
g_hash_table_insert (direntcache, dirp, de);
|
||||
}
|
||||
struct dirent *copy;
|
||||
copy = g_memdup (ret, sizeof (struct dirent));
|
||||
g_ptr_array_add (de->entries, copy);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user