Commit 51a2661d authored by Jeremy Huddleston's avatar Jeremy Huddleston Committed by William Hua

Link with Foundation framework on OSX.

Signed-off-by: William Hua's avatarWilliam Hua <william@attente.ca>
parent 92654b50
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment