Missing -ObjC flag in gdk-quartz-3.0.pc?
Steps to reproduce
- Try to build this program on osx with
gcc $(pkg-config --cflags --libs gdk-quartz-3.0) ./main.c
:
#include <gdk/gdkquartz.h>
int main(int argc, char **argv)
{
return 0;
}
-
In file included from ./main.c:1:
In file included from /usr/local/Cellar/gtk+3/3.24.5/include/gtk-3.0/gdk/gdkquartz.h:23:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:8:
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:512:1: error: expected identifier or '('
@class NSString, Protocol;
^
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:514:9: error: unknown type name 'NSString'
typedef NSString * NSExceptionName NS_EXTENSIBLE_STRING_ENUM;
- Adding -ObjC to the CFLAGS is apparently enough to get this to build. If using -ObjC to build with #include <gdkquartz.h>, shouldn't this be provided by gdk-quartz-3.0.pc?