title: error: inlining failed in call to always_inline '_mm_aesenc_si128': target specific option mismatch, adding -msse4.1 not enough
body: <p>I'm trying to cross-compile the cryptonote gui wallet from Linux (Fedora) to Windows.</p>
  
  <p>When compiling without any additional flags, I get this error :</p>
  
  <pre><code>In file included from /home/etienne/Documents/Brokertech/bkc/brokercoins/guiwallet-win/cryptonote/src/crypto/slow-hash.c:9:0:
  /usr/lib/gcc/i686-w64-mingw32/7.2.0/include/emmintrin.h:1290:1: error: inlining failed in call to always_inline '_mm_xor_si128': target specific option mismatch
    _mm_xor_si128 (__m128i __A, __m128i __B)
    ^~~~~~~~~~~~~
  /home/etienne/Documents/Brokertech/bkc/brokercoins/guiwallet-win/cryptonote/src/crypto/slow-hash.c:100:11: note: called from here
     *tmp3 = _mm_xor_si128(*tmp3, tmp4);
  </code></pre>
  
  <p>I then tried to add -msse4.1 flags for C and CXX, and I still got the same error, but on a different file :</p>
  
  <pre><code>In file included from 
  /home/etienne/Documents/Brokertech/bkc/brokercoins/guiwallet-win/cryptonote/src/crypto/slow-hash.c:10:0:
  /usr/lib/gcc/i686-w64-mingw32/7.2.0/include/wmmintrin.h:61:1: error: inlining failed in call to always_inline '_mm_aesenc_si128': target specific option mismatch
     _mm_aesenc_si128 (__m128i __X, __m128i __Y)
     ^~~~~~~~~~~~~~~~
  In file included from 
  /home/etienne/Documents/Brokertech/bkc/brokercoins/guiwallet-win/cryptonote/src/crypto/slow-hash.c:167:0:
  /home/etienne/Documents/Brokertech/bkc/brokercoins/guiwallet-win/cryptonote/src/crypto/slow-hash.inl:159:21: note: called from here
     xmminput[0] = _mm_aesenc_si128(xmminput[0], expkey[j]);
  </code></pre>
  
  <p>I don't get why the solution worked on the first file but is now blocking ?
  Thanks a lot !</p>