From 11f3fd75470a8dfe46df0b2ab8ea784b4f041167 Mon Sep 17 00:00:00 2001 Message-Id: <11f3fd75470a8dfe46df0b2ab8ea784b4f041167.1411863113.git.dbn.lists@gmail.com> From: Dan Nicholson Date: Sat, 27 Sep 2014 17:07:31 -0700 Subject: [PATCH] Also match -Wl,-framework for OSX framework Freedesktop #1278 (https://bugs.freedesktop.org/show_bug.cgi?id=1278) --- parse.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/parse.c b/parse.c index 60785ea..1debcce 100644 --- a/parse.c +++ b/parse.c @@ -665,7 +665,9 @@ static void _do_parse_libs (Package *pkg, int argc, char **argv) flag->arg = g_strconcat (L_flag, p, NULL); pkg->libs = g_list_prepend (pkg->libs, flag); } - else if (strcmp("-framework",p) == 0 && i+1 < argc) + else if ((strcmp("-framework", p) == 0 || + strcmp("-Wl,-framework", p) == 0) && + i+1 < argc) { /* Mac OS X has a -framework Foo which is really one option, * so we join those to avoid having -framework Foo -- 1.9.3