Index: trunk/extensions/normal/Makefile |
— | — | @@ -8,6 +8,9 @@ |
9 | 9 | # For Linux |
10 | 10 | SHARED = -shared |
11 | 11 | |
| 12 | +# For Mac OS X |
| 13 | +#SHARED = -bundle -flat_namespace -undefined suppress |
| 14 | + |
12 | 15 | TMPDIST=$(PRODUCT)-$(VERSION) |
13 | 16 | DISTFILES=Makefile \ |
14 | 17 | $(PRODUCT).spec \ |
— | — | @@ -17,7 +20,9 @@ |
18 | 21 | |
19 | 22 | |
20 | 23 | php_$(PRODUCT).so : $(PRODUCT).cpp $(PRODUCT)_wrap.cpp |
21 | | - $(CXX) $(CFLAGS) `php-config --includes` -licuuc $(SHARED) -o php_$(PRODUCT).so $(PRODUCT).cpp $(PRODUCT)_wrap.cpp |
| 24 | + $(CXX) $(CFLAGS) `php-config --includes --ldflags --libs` \ |
| 25 | + -licuuc -licudata \ |
| 26 | + $(SHARED) -o php_$(PRODUCT).so $(PRODUCT).cpp $(PRODUCT)_wrap.cpp |
22 | 27 | |
23 | 28 | $(PRODUCT)_wrap.cpp : $(PRODUCT).i |
24 | 29 | swig -Wall -php4 -c++ $(PRODUCT).i |