Mercurial > gub
comparison gub/specs/pthreads-w32.py @ 6512:ccc20ae889ca default tip guix
mingw::guile-2.0.7 builds.
author | Jan Nieuwenhuizen <janneke@gnu.org> |
---|---|
date | Thu, 24 Mar 2016 08:03:39 +0100 |
parents | 9cc45009b221 |
children |
comparison
equal
deleted
inserted
replaced
6511:728bffca309a | 6512:ccc20ae889ca |
---|---|
1 from gub import misc | 1 from gub import misc |
2 from gub import target | 2 from gub import target |
3 | 3 |
4 class Pthreads_w32 (target.MakeBuild): | 4 class Pthreads_w32 (target.MakeBuild): |
5 source = 'ftp://sourceware.org/pub/pthreads-win32/pthreads-w32-2-8-0-release.tar.gz' | 5 source = 'ftp://sourceware.org/pub/pthreads-win32/pthreads-w32-2-9-1-release.tar.gz' |
6 make_flags = 'GC CROSS=%(toolchain_prefix)s' | 6 make_flags = 'GC CROSS=%(toolchain_prefix)s' |
7 install_command = misc.join_lines (''' | 7 install_command = misc.join_lines (''' |
8 install -d %(install_prefix)s/bin | 8 install -d %(install_prefix)s/bin |
9 install -d %(install_prefix)s/include | 9 install -d %(install_prefix)s/include |
10 install -d %(install_prefix)s/lib | 10 install -d %(install_prefix)s/lib |
12 && install -m755 pthreadGC2.dll %(install_prefix)s/bin | 12 && install -m755 pthreadGC2.dll %(install_prefix)s/bin |
13 && install -m755 libpthreadGC2.a %(install_prefix)s/lib | 13 && install -m755 libpthreadGC2.a %(install_prefix)s/lib |
14 && install -m755 pthreadGC2.dll %(install_prefix)s/bin/pthread.dll | 14 && install -m755 pthreadGC2.dll %(install_prefix)s/bin/pthread.dll |
15 && install -m755 libpthreadGC2.a %(install_prefix)s/lib/libpthread.a | 15 && install -m755 libpthreadGC2.a %(install_prefix)s/lib/libpthread.a |
16 ''') | 16 ''') |
17 def compile (self): | |
18 print self.get_substitution_dict ()['PATH'] | |
19 target.MakeBuild.compile (self) | |
17 def install (self): | 20 def install (self): |
18 for file in ['pthread.h', 'sched.h']: | 21 for file in ['pthread.h', 'sched.h']: |
19 self.file_sub ([('#undef PTW32_LEVEL\s', ''' | 22 self.file_sub ([('#undef PTW32_LEVEL\s', ''' |
20 #ifndef _POSIX_SOURCE | 23 #ifndef _POSIX_SOURCE |
21 #define _POSIX_SOURCE | 24 #define _POSIX_SOURCE |
22 #undef _POSIX_C_SOURCE | 25 #undef _POSIX_C_SOURCE |
23 #define _POSIX_C_SOURCE 199000 | 26 #define _POSIX_C_SOURCE 199000 |
24 /*URG*/ | 27 /*URG*/ |