title: '-mmacosx-version-min' not allowed with '-miphoneos-version-min'
body: <p>I'm trying to cross-compile lib for iOS simulator:</p>
  
  <pre><code>export CC="clang -arch i386 -mios-version-min=5.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk"
  
  export CXX="clang++ -arch i386 -mios-version-min=5.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk"
  
  ../configure --prefix=/Users/asmirnov/Documents/dev/src/libadx_installed --enable-optimized --disable-assertions
  
  unset CC CXX
  
  make VERBOSE=1 -j4
  </code></pre>
  
  <p>and i'm getting error:</p>
  
  <pre><code>clang: error: invalid argument '-mmacosx-version-min=10.9' not allowed with '-miphoneos-version-min=5.0'
  </code></pre>
  
  <p>since i'm compiling for ios i'm using <code>-miphoneos-version-min</code> parameter and <code>-mmacosx-version-min=10.9</code> is added automatically somehow.</p>
  
  <p>How can i fix it?</p>
  
  <p>UPDATE: make VERBOSE=1</p>
  
  <pre><code>llvm[3]: Linking Release Loadable Module LLVMHello.dylib
  clang++  -O3 -rdynamic -Wl,-rpath -Wl,@executable_path/../lib -L/Users/asmirnov/Documents/dev/src/llvm_34_build_i386/Release/lib -L/Users/asmirnov/Documents/dev/src/llvm_34_build_i386/Release/lib -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk -miphoneos-version-min=5.0 -stdlib=libc++ -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk -miphoneos-version-min=5.0 -stdlib=libc++ -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk -miphoneos-version-min=5.0 -stdlib=libc++ -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk -miphoneos-version-min=5.0 -stdlib=libc++ -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk -miphoneos-version-min=5.0 -stdlib=libc++ -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk -miphoneos-version-min=5.0 -stdlib=libc++ -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk -miphoneos-version-min=5.0 -stdlib=libc++ -m32  -Wl,-flat_namespace -Wl,-undefined,suppress -dynamiclib -mmacosx-version-min=10.9 -o /Users/asmirnov/Documents/dev/src/llvm_34_build_i386/Release/lib/LLVMHello.dylib /Users/asmirnov/Documents/dev/src/llvm_34_build_i386/lib/Transforms/Hello/Release/Hello.o \
         -Wl,-exported_symbols_list,/Users/asmirnov/Documents/dev/src/llvm_34_build_i386/lib/Transforms/Hello/Release/Hello.exports.sed -lz -lpthread -lcurses -lm 
  clang: error: invalid argument '-mmacosx-version-min=10.9' not allowed with '-miphoneos-version-min=5.0'
  </code></pre>