summaryrefslogtreecommitdiffstats
path: root/src/ilmbase.mk
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2009-02-17 02:53:59 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2009-02-17 02:53:59 (GMT)
commitefba51f9238c4d95d84c463ccc5fed594fed3710 (patch)
treed96b775bb77bc208a5dd0a560471874240cd43e8 /src/ilmbase.mk
parent0ed1cda62f39878c72e3d6ff39b979e015214822 (diff)
downloadmxe-efba51f9238c4d95d84c463ccc5fed594fed3710.zip
mxe-efba51f9238c4d95d84c463ccc5fed594fed3710.tar.gz
mxe-efba51f9238c4d95d84c463ccc5fed594fed3710.tar.bz2
enable win32 threading for package ilmbase
Diffstat (limited to 'src/ilmbase.mk')
-rw-r--r--src/ilmbase.mk10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/ilmbase.mk b/src/ilmbase.mk
index 1c0d8f9..92a8cd3 100644
--- a/src/ilmbase.mk
+++ b/src/ilmbase.mk
@@ -18,12 +18,18 @@ endef
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