Ticket #12952: 0001-Build-implement-function-so-that-debug-build-of-gnur.patch

File 0001-Build-implement-function-so-that-debug-build-of-gnur.patch, 1.3 KB (added by apl-haiku, 8 years ago)
  • src/build/libgnuregex/Jamfile

    From ececba644689bb9231fd695aa638ee1362865736 Mon Sep 17 00:00:00 2001
    From: Andrew Lindesay <apl@lindesay.co.nz>
    Date: Fri, 9 Sep 2016 23:56:10 +1200
    Subject: [PATCH 1/1] Build; implement function so that debug build of gnuregex
     can occur on mac hosted build
    
    ---
     src/build/libgnuregex/Jamfile          |  3 ++-
     src/build/libgnuregex/debugprintchar.c | 12 ++++++++++++
     2 files changed, 14 insertions(+), 1 deletion(-)
     create mode 100644 src/build/libgnuregex/debugprintchar.c
    
    diff --git a/src/build/libgnuregex/Jamfile b/src/build/libgnuregex/Jamfile
    index cfcc8ef..62e006a 100644
    a b  
    11SubDir HAIKU_TOP src build libgnuregex ;
    22
    33BuildPlatformSharedLibrary libgnuregex_build.so :
    4     regex.c
     4    regex.c
     5    debugprintchar.c
    56    :
    67    # no linked libraries here
    78;
  • new file src/build/libgnuregex/debugprintchar.c

    diff --git a/src/build/libgnuregex/debugprintchar.c b/src/build/libgnuregex/debugprintchar.c
    new file mode 100644
    index 0000000..1c9c874
    - +  
     1/*
     2 * Copyright 2013-2014, Andrew Lindesay <apl@lindesay.co.nz>.
     3 * All rights reserved. Distributed under the terms of the MIT License.
     4 */
     5
     6#ifdef DEBUG
     7
     8void printchar(int ch) {
     9    printf("%x",ch);
     10}
     11
     12#endif // DEBUG