commit 162e90c6bb93cae7bab8633444ba71891650bfa0
Author: Jeremy Huddleston <jeremyhu@apple.com>
Date: Tue Dec 20 21:26:24 2011 -0800
Link with -undefined dynamic_lookup
dock-support.o contains some symbols which may not be present at link time on
older OS versions. These symbols are annotated with weak_import and checked
for at runtime, so it was possible to build on Snow Leopard and run on Leopard,
but it was not possible to build on Leopard since these symbols are not
available at link time. This change makes it possible to build on Leopard and
places the burden of resolving those symbols on dyld.
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
diff --git a/src/Makefile.am b/src/Makefile.am
index 1eeb8c6..30ea33b 100644
a
|
b
|
AM_CFLAGS = $(QUARTZWM_CFLAGS) $(CWARNFLAGS) |
28 | 28 | quartz_wm_LDFLAGS = $(QUARTZWM_LIBS) \ |
29 | 29 | -framework AppKit \ |
30 | 30 | -framework Foundation \ |
31 | | -framework ApplicationServices |
| 31 | -framework ApplicationServices \ |
| 32 | -undefined dynamic_lookup |
32 | 33 | |
33 | 34 | quartz_wm_LDADD = dock-support.o |
34 | 35 | |