Fixed the build with the mingw-w64 toolchain

epel9
Kalev Lember 13 years ago
parent e04ed371ad
commit 39e8d52559

@ -6,8 +6,8 @@
libdl.a: dlfcn.o
- ar cru libdl.a dlfcn.o
- ranlib libdl.a
+ i686-pc-mingw32-ar cru libdl.a dlfcn.o
+ i686-pc-mingw32-ranlib libdl.a
+ i686-w64-mingw32-ar cru libdl.a dlfcn.o
+ i686-w64-mingw32-ranlib libdl.a
libdl.dll: dlfcn.o
$(CC) $(SHFLAGS) -shared -o libdl.dll dlfcn.o

@ -3,10 +3,10 @@ diff -ruNp dlfcn-win32-r11/config.mak dlfcn-win32-r11.new/config.mak
+++ dlfcn-win32-r11.new/config.mak 2009-01-02 12:08:15.000000000 -0200
@@ -0,0 +1,9 @@
+# Automatically generated by configure
+PREFIX=/usr/i686-pc-mingw32/sys-root/mingw
+libdir=/usr/i686-pc-mingw32/sys-root/mingw/lib
+incdir=/usr/i686-pc-mingw32/sys-root/mingw/include
+CC=i686-pc-mingw32-gcc
+PREFIX=/usr/i686-w64-mingw32/sys-root/mingw
+libdir=/usr/i686-w64-mingw32/sys-root/mingw/lib
+incdir=/usr/i686-w64-mingw32/sys-root/mingw/include
+CC=i686-w64-mingw32-gcc
+BUILD_SHARED=yes
+BUILD_STATIC=yes
+BUILD_MSVC=no

@ -60,10 +60,10 @@ Static version of the MinGW Windows dlfcn library.
%build
%{_mingw32_configure} \
--incdir=%{_mingw32_includedir} \
--cc=i686-pc-mingw32-gcc \
--cc=i686-w64-mingw32-gcc \
--enable-shared=yes \
--enable-static=yes \
--enable-strip=i686-pc-mingw32-strip
--enable-strip=i686-w64-mingw32-strip
make %{?_smp_mflags}

Loading…
Cancel
Save