-
Notifications
You must be signed in to change notification settings - Fork 562
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Glib] Upgrade builder to v2.68.1 (#91)
* [Glib] Upgrade builder to v2.62 * [Glib] Fix sed script for PowerPC and FreeBSD * [Glib] Install host `Gettext_jll` * [Glib] Upgrade to v2.68.1 * [Glib] Add patch to fix missing `xattr.h` on FreeBSD * [Glib] Our libiconv now has a pkg-config file * [Glib] Build for experimental platforms
- Loading branch information
Showing
2 changed files
with
50 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- a/meson.build | ||
+++ b/meson.build | ||
@@ -2111,16 +2111,15 @@ | ||
if cc.has_function('getxattr') and cc.has_header('sys/xattr.h') | ||
glib_conf.set('HAVE_SYS_XATTR_H', 1) | ||
glib_conf_prefix = glib_conf_prefix + '#define @0@ 1\n'.format('HAVE_SYS_XATTR_H') | ||
+ glib_conf.set('HAVE_XATTR', 1) | ||
#failure. try libattr | ||
elif cc.has_header_symbol('attr/xattr.h', 'getxattr') | ||
glib_conf.set('HAVE_ATTR_XATTR_H', 1) | ||
glib_conf_prefix = glib_conf_prefix + '#define @0@ 1\n'.format('HAVE_ATTR_XATTR_H') | ||
xattr_dep = [cc.find_library('xattr')] | ||
- else | ||
- error('No getxattr implementation found in C library or libxattr') | ||
+ glib_conf.set('HAVE_XATTR', 1) | ||
endif | ||
|
||
- glib_conf.set('HAVE_XATTR', 1) | ||
if cc.compiles(glib_conf_prefix + ''' | ||
#include <stdio.h> | ||
#ifdef HAVE_SYS_TYPES_H |