> Hello all,
> 
> I am trying to compile a static lib on Mavericks using Xcode5, SDK10.8 and 
> Intel compiler 2015. It should be stated that the default SDK is 10.9. And 
> also, that the problem doesn’t occur in case of dynamic lib compilation.
> 
> As I understand it, the proper line (simplified) that should be carried out 
> is:
> 
> /usr/bin/icpc-15.0 -arch x86_64 -isysroot 
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk
>  …
>  
> Which should then propagate to Libtool (again, simplified) as:
> /usr/bin/icpc-15.0-base/bin/intel64/xilibtool -static 
> -qbe-name=/usr/bin/icpc-15.0-base/bin/intel64/mcpcom -arch_only x86_64 
> -syslibroot 
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk
>  …
>  
> In fact, the line which is carried out has the flag –syslibroot instead of 
> –isysroot in it. Which then propagates as twice –syslibroot, once as if 
> –isysroot was sent with SDK 10.9 (the default) and once with my request for 
> SDK 10.8:
>  
> The line which is actually carried out:
> 
> /usr/bin/icpc-15.0 -v -arch x86_64 -syslibroot 
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk
>  ….
>  
> The propagation:
> /usr/bin/icpc-15.0-base/bin/intel64/xilibtool -static 
> -qbe-name=/usr/bin/icpc-15.0-base/bin/intel64/mcpcom -arch_only x86_64 
> -syslibroot 
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk
>  … -syslibroot 
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk
>  …
>  
> 
> The result is Libtool being confused about which SDK to use and emitting an 
> error:
> 
> xilibtool: executing ‘libtool’
> 
> error: libtool: more than one: -syslibroot option specified
> 
> Anyone have a clue as to how to control which flag is sent?
> 
> Thanks
> 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to