Mercurial > mxe-octave
changeset 897:0379a09e0b7a
enable static linking of pthreads even when <sched.h> is included without <pthread.h>
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Thu, 22 Apr 2010 01:09:36 +0200 |
parents | 5e1d76c5caf9 |
children | 3e16db641e45 |
files | src/gcc.mk |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gcc.mk Wed Apr 21 13:42:44 2010 +0200 +++ b/src/gcc.mk Thu Apr 22 01:09:36 2010 +0200 @@ -61,6 +61,8 @@ # unpack and build pthreads (needed by libgomp) cd '$(1)' && $(call UNPACK_PKG_ARCHIVE,gcc-pthreads) $(SED) -i '35i\#define PTW32_STATIC_LIB' '$(1)/$(gcc-pthreads_SUBDIR)/pthread.h' + $(SED) -i '41i\#define PTW32_STATIC_LIB' '$(1)/$(gcc-pthreads_SUBDIR)/sched.h' + $(SED) -i '41i\#define PTW32_STATIC_LIB' '$(1)/$(gcc-pthreads_SUBDIR)/semaphore.h' $(SED) -i 's,#include "config.h",,' '$(1)/$(gcc-pthreads_SUBDIR)/pthread.h' $(MAKE) -C '$(1)/$(gcc-pthreads_SUBDIR)' -j 1 GC-static CROSS='$(TARGET)-' $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib'