Skip to content

Commit

Permalink
update for latest mingw
Browse files Browse the repository at this point in the history
  • Loading branch information
matteo-frigo committed Feb 25, 2012
1 parent 06fff65 commit 6060dbc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
6 changes: 3 additions & 3 deletions support/BUILD-MINGW32.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
set -e

confflags="--prefix=`pwd`/mingw32 --host=i586-mingw32msvc --with-our-malloc --with-windows-f77-mangling --enable-shared --disable-static --enable-threads --with-combined-threads --with-incoming-stack-boundary=2"
confflags="--prefix=`pwd`/mingw32 --host=i686-w64-mingw32 --with-our-malloc --with-windows-f77-mangling --enable-shared --disable-static --enable-threads --with-combined-threads --with-incoming-stack-boundary=2"

rm -rf mingw32

Expand Down Expand Up @@ -34,7 +34,7 @@ for dll in *.dll; do
def=`basename $dll .dll`.def
echo "LIBRARY $dll" > $def
echo EXPORTS >> $def
i586-mingw32msvc-nm $dll | grep ' T _' | sed 's/.* T _//' | grep fftw >> $def
i686-w64-mingw32-nm $dll | grep ' T _' | sed 's/.* T _//' | grep fftw >> $def
done
)

Expand Down Expand Up @@ -63,7 +63,7 @@ to see whether SSE/SSE2 is supported and disables the relevant code if not).
They were compiled by the GNU C compiler for MinGW, specifically:
EOF
i586-mingw32msvc-gcc --version |head -1 >> README-WINDOWS
i686-w64-mingw32-gcc --version |head -1 >> README-WINDOWS
cp -f tests/README README-bench

fftw_vers=`grep PACKAGE_VERSION double-mingw32/config.h |cut -d" " -f3 |tr -d \"`
Expand Down
9 changes: 7 additions & 2 deletions support/BUILD-MINGW64.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
set -e

confflags="--prefix=`pwd`/mingw64 --host=amd64-mingw32msvc --disable-alloca --with-our-malloc --with-windows-f77-mangling --enable-shared --disable-static --enable-threads --with-combined-threads"
confflags="--prefix=`pwd`/mingw64 --host=x86_64-w64-mingw32 --disable-alloca --with-our-malloc --with-windows-f77-mangling --enable-shared --disable-static --enable-threads --with-combined-threads"

rm -rf mingw64

Expand Down Expand Up @@ -34,7 +34,12 @@ for dll in *.dll; do
def=`basename $dll .dll`.def
echo "LIBRARY $dll" > $def
echo EXPORTS >> $def
amd64-mingw32msvc-nm $dll | grep ' T _' | sed 's/.* T _//' | grep fftw >> $def

# For some reason mingw does not prepend an underscore anymore in
# 64-bit mode. Hmmm...
# x86_64-w64-mingw32-nm $dll | grep ' T _' | sed 's/.* T _//' | grep fftw >> $def

x86_64-w64-mingw32-nm $dll | grep ' T ' | sed 's/.* T //' | grep fftw >> $def
done
)

Expand Down

0 comments on commit 6060dbc

Please sign in to comment.