# HG changeset patch # User Volker Grabsch # Date 1234839239 -3600 # Node ID 6c41860a7b65bc531184bce45c371eca5e5ef3e2 # Parent 4732cfd0d85850f9ec97abc1f601d49eadb07dac enable win32 threading for package ilmbase diff -r 4732cfd0d858 -r 6c41860a7b65 src/ilmbase.mk --- a/src/ilmbase.mk Mon Feb 16 15:34:43 2009 +0100 +++ b/src/ilmbase.mk Tue Feb 17 03:53:59 2009 +0100 @@ -18,12 +18,18 @@ define $(PKG)_BUILD # wine confuses the cross-compiling detection, so set it explicitly $(SED) 's,cross_compiling=no,cross_compiling=yes,' -i '$(1)/configure' + # build the win32 thread sources instead of the posix thread sources + $(SED) 's,IlmThreadPosix\.,IlmThreadWin32\.,' -i '$(1)/IlmThread/Makefile.in' + $(SED) 's,IlmThreadSemaphorePosix\.,IlmThreadSemaphoreWin32\.,' -i '$(1)/IlmThread/Makefile.in' + $(SED) 's,IlmThreadMutexPosix\.,IlmThreadMutexWin32\.,' -i '$(1)/IlmThread/Makefile.in' + echo '/* disabled */' > '$(1)/IlmThread/IlmThreadSemaphorePosixCompat.cpp' + # Because of the previous changes, '--disable-threading' will not disable + # threading. It will just disable the unwanted check for pthread. cd '$(1)' && ./configure \ --host='$(TARGET)' \ --disable-shared \ --prefix='$(PREFIX)/$(TARGET)' \ - --enable-threading=no \ - --disable-posix-sem + --disable-threading # do the first build step by hand, because programs are built that # generate source files cd '$(1)/Half' && g++ eLut.cpp -o eLut