Permalink
Browse files

[ios] fixed, ios depends build on xcode4/10.7

  • Loading branch information...
davilla committed May 12, 2012
1 parent 8b5ef79 commit 9a27da9902a082fdd6315533889dd236d3e97fdf
Showing with 3 additions and 1 deletion.
  1. +1 −0 tools/darwin/depends/config.site_ios.mk.in
  2. +2 −1 tools/darwin/depends/samba/Makefile
@@ -18,6 +18,7 @@ host_alias=arm-apple-darwin10
cross_compiling=yes
platform_path=@use_xcodepath@/Platforms/iPhoneOS.platform/Developer
+platform_xcode_path=@use_xcodepath@
platform_os_cflags=-arch @use_arch@ -mcpu=cortex-a8 -mfpu=neon -ftree-vectorize -mfloat-abi=softfp -pipe -Wno-trigraphs -fpascal-strings -O3 -Wreturn-type -Wunused-variable -fmessage-length=0 -gdwarf-2
platform_os_ldflags=-arch @use_arch@ -mcpu=cortex-a8
platform_sdk_path=@use_sdk_path@
@@ -1,4 +1,5 @@
include ../Makefile.include
+include ../config.site.mk
# lib name, version
LIBNAME=samba
@@ -26,7 +27,7 @@ $(LIBDYLIB): $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(SOURCE)/source3; ./autogen.sh
cd $(SOURCE)/source3; $(CONFIGURE)
if test "$(DARWIN)" = "ios"; then \
- cp -f /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator$(SDK).sdk/usr/include/crt_externs.h $(PREFIX)/include/; \
+ cp -f $(platform_xcode_path)/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator$(SDK).sdk/usr/include/crt_externs.h $(PREFIX)/include/; \
fi
cd $(SOURCE)/source3; make -j 1 bin/libsmbclient.dylib

0 comments on commit 9a27da9

Please sign in to comment.