neuswc

patched neuswc library (tracked)
git clone https://git.daat.foo/neuswc.git
Log | Files | Refs | README | LICENSE

cross.patch (791B)


      1 cursor: build convert_cont for the build machine
      2 
      3 it runs during the build to make cursor_data.h, so a cross build has to
      4 make it for the machine it runs on, not the target. the project's
      5 arguments are the target's, so the tool asks for strdup itself.
      6 
      7 --- a/cursor/meson.build
      8 +++ b/cursor/meson.build
      9 @@ -1,4 +1,4 @@
     10 -tool = executable('convert_cont', 'convert_font.c')
     11 +tool = executable('convert_cont', 'convert_font.c', native: true)
     12  
     13  cursor = custom_target('cursor_data_h',
     14    input: 'cursor.pcf',
     15 --- a/cursor/convert_font.c
     16 +++ b/cursor/convert_font.c
     17 @@ -26,6 +26,8 @@
     18   * http://fontforge.org/pcf-format.html
     19   */
     20  
     21 +#define _POSIX_C_SOURCE 200809L /* strdup, as a tool of the build machine has no project flags */
     22 +
     23  #include <assert.h>
     24  #include <fcntl.h>
     25  #include <stdint.h>