Ticket #32609: quartz-wm.patch

File quartz-wm.patch, 1.1 KB (added by jeremyhu (Jeremy Huddleston Sequoia), 13 years ago)

quartz-wm.patch

  • src/Makefile.am

    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) 
    2828quartz_wm_LDFLAGS = $(QUARTZWM_LIBS) \
    2929        -framework AppKit \
    3030        -framework Foundation \
    31         -framework ApplicationServices
     31        -framework ApplicationServices \
     32        -undefined dynamic_lookup
    3233
    3334quartz_wm_LDADD = dock-support.o
    3435