Ticket #5006: patch-wxhaskell-makefile-osx

File patch-wxhaskell-makefile-osx, 839 bytes (added by eric.kow@…, 18 years ago)

makefile patch to bypass the compile-as-static-lib phase

Line 
1diff -uN wxhaskell-0.9.4/makefile wxhaskell-0.9.4-tmp/makefile
2--- wxhaskell-0.9.4/makefile    2005-05-08 08:45:23.000000000 +0200
3+++ wxhaskell-0.9.4-tmp/makefile        2006-03-16 15:42:14.000000000 +0100
4@@ -715,9 +715,7 @@
5 
6 # dynamic link library on macOSX: generates single .so file
7 $(basename $(WXC-LIB)).dylib: $(WXC-OBJS)
8-       $(CXX) -r -keep_private_externs -nostdlib -o $(WXC-OUTDIR)/master.o $^ $(WXC-LIBS)
9-       $(CXX) -dynamiclib -install_name $(SHARED-PREFIX)$(notdir $@) -undefined suppress -flat_namespace -o $@ $(WXC-OUTDIR)/master.o $(filter-out %.a,$(WXC-LIBS))
10-       $(RM) -f $(WXC-OUTDIR)/master.o
11+       $(CXX) -dynamiclib -install_name $(SHARED-PREFIX)$(notdir $@) -undefined suppress -flat_namespace -o $@ $^ $(filter-out %.a,$(WXC-LIBS))
12       
13 # create an object file from source files
14 $(WXC-OBJS): $(WXC-OUTDIR)/%.o: $(WXC-SRCDIR)/%.cpp