Link with Foundation framework on OSX.

Signed-off-by: William Hua <william@attente.ca>
This commit is contained in:
Jeremy Huddleston 2012-04-11 01:44:29 -04:00 committed by William Hua
parent 92654b5035
commit 51a2661da6

View File

@ -455,10 +455,6 @@ libgio_2_0_la_LIBADD = \
libgio_2_0_la_CPPFLAGS = $(ZLIB_CFLAGS) $(AM_CPPFLAGS)
if OS_CARBON
libgio_2_0_la_CFLAGS = -xobjective-c
endif
if PLATFORM_WIN32
no_undefined = -no-undefined
endif
@ -492,6 +488,13 @@ libgio_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
-export-dynamic $(no_undefined) $(export_symbols)
# This condition is misnamed. It's really checking for Cocoa, not Carbon
if OS_CARBON
# This is dumb. The ObjC source file should be properly named .m
libgio_2_0_la_CFLAGS = -xobjective-c
libgio_2_0_la_LDFLAGS += -framework Foundation
endif
libgio_2_0_la_DEPENDENCIES = $(gio_win32_res) $(gio_def) $(platform_deps)
gio-win32-res.o: gio.rc