title: undefined reference to `__ctype_b_loc' etc
body: <p>I am compiling curl for an embedded device, and get:</p>
  
  <p>main.c:(.text+0x375c): undefined reference to <code>__strdup'
  main.c:(.text+0x3818): undefined reference to</code>__ctype_b_loc'
  __fxstat64 etc</p>
  
  <p>I have tried varied -lc etc.</p>
  
  <p>From some research it seems there can be a mixup with older versions (__ctype_b).
  I also suspect a mixup between C and C++.</p>
  
  <p>(These are from makefiles generated with builtools (configure), and quite a lot of sourcefiles.</p>