title: Unresolved sincos during build of LAPACK
body: <p>Following the instructions <a href="http://specificimpulses.blogspot.com/2011/10/android-fortran-step-by-step-part-2.html" rel="nofollow">here</a> I have built a Fortran enabled NDK toolchain (OSX, NDK-7b) with the goal of building LAPACK/BLAS.</p>
  
  <p>Using android-cmake with the 3.4.0 net lib source it seems that I'm nearly successful. However, the BLAS build fails when linking one of the tests (with an error stating unresolved <code>sincos</code> and <code>sincosf</code>).  A little searching reveals that these functions are not available in legacy Android versions. I'm wondering what is the best way to resolve these functions?</p>
  
  <p>Below is and example of a linking error:</p>
  
  <blockquote>
    <p>cd /Users/marc/software/lapack-3.4.0/Android/BLAS/TESTING &amp;&amp; /opt/local/bin/cmake -E cmake_link_script CMakeFiles/xblat2c.dir/link.txt --verbose=1
    /opt/local/share/java/android-ndk-macosx/toolchains/arm-linux-androideabi-4.7.0/prebuilt/darwin-x86/bin/arm-linux-androideabi-gfortran   -Wl,--gc-sections -Wl,-z,nocopyreloc -Wl,--fix-cortex-a8 -Wl,--no-undefined  -lstdc++ -lsupc++  CMakeFiles/xblat2c.dir/cblat2.f.o  -o ../../bin/xblat2c -rdynamic -L/Users/marc/software/lapack-3.4.0/Android/systemlibs/armeabi-v7a -L/opt/local/share/java/android-ndk-macosx/toolchains/arm-linux-androideabi-4.7.0/prebuilt/darwin-x86/user/libs/armeabi-v7a ../../lib/libblas.a -lm -Wl,-rpath,/Users/marc/software/lapack-3.4.0/Android/systemlibs/armeabi-v7a:/opt/local/share/java/android-ndk-macosx/toolchains/arm-linux-androideabi-4.7.0/prebuilt/darwin-x86/user/libs/armeabi-v7a 
    /opt/local/share/java/android-ndk-macosx/toolchains/arm-linux-androideabi-</p>
    
    <p>4.7.0/prebuilt/darwin-x86/lib/gcc/arm-linux-androideabi/4.7.0/../../../../arm-linux-androideabi/lib/libgfortran.a(c99_functions.o): In function <code>cexpf':
    /opt/local/share/java/android-ndk-macosx/src/build/../gcc/gcc-4.7.0/libgfortran/intrinsics/c99_functions.c:910: undefined reference to</code>sincosf'</p>
  </blockquote>