kopia lustrzana https://github.com/Hamlib/Hamlib
Fix mingw32 cross-compilation procedure and config
Updated README.release procedure and configure.ac for Windows DLL (mingw32) build. Now that hamlib no longer bundles libltdl (libtool), libltdl must be imported, configured with --host-i586-mingw32msvc, and built (before configuring hamlib with --host-i586-mingw32msvc).Hamlib-1.2.14
rodzic
07bc66e7ab
commit
0c7966fc30
|
@ -16,7 +16,7 @@ Before deciding release:
|
||||||
* Announce SVN/version freeze on hamlib-developer mailing list,
|
* Announce SVN/version freeze on hamlib-developer mailing list,
|
||||||
so developers have time to check in their contributions.
|
so developers have time to check in their contributions.
|
||||||
|
|
||||||
* Update libtool:
|
* Update the configuration:
|
||||||
clean the tree
|
clean the tree
|
||||||
sh ./autogen.sh
|
sh ./autogen.sh
|
||||||
|
|
||||||
|
@ -48,12 +48,17 @@ Releasing Hamlib:
|
||||||
|
|
||||||
* Build Windows DLL from previous tarball, and .LIB, then create .zip file
|
* Build Windows DLL from previous tarball, and .LIB, then create .zip file
|
||||||
Rem: under Linux, you need the package mingw32 to cross-compile it,
|
Rem: under Linux, you need the package mingw32 to cross-compile it,
|
||||||
|
and an internal copy of libltdl (configured and built),
|
||||||
and free MVC++Toolkit to create .lib file:
|
and free MVC++Toolkit to create .lib file:
|
||||||
|
# Import internal ./libltdl and build it for mingw32
|
||||||
|
libtoolize --ltdl
|
||||||
|
( cd libltdl; ./configure --host=i586-mingw32msvc && make )
|
||||||
|
# Configure and build hamlib for mingw32
|
||||||
./configure --disable-static \
|
./configure --disable-static \
|
||||||
--host=i586-mingw32msvc \
|
--host=i586-mingw32msvc \
|
||||||
--prefix=/tmp/mingw-inst \
|
--prefix=/tmp/mingw-inst \
|
||||||
--without-rpc-backends \
|
--without-rpc-backends \
|
||||||
--enable-xmltest PKG_CONFIG_LIBDIR= ac_cv_path_PKG_CONFIG=no
|
PKG_CONFIG_LIBDIR= ac_cv_path_PKG_CONFIG=no
|
||||||
make install
|
make install
|
||||||
new_ver="x.y.z"
|
new_ver="x.y.z"
|
||||||
mkdir -p /tmp/mingw-inst/hamlib-${new_ver}/lib/msvc /tmp/mingw-inst/hamlib-${new_ver}/lib/gcc
|
mkdir -p /tmp/mingw-inst/hamlib-${new_ver}/lib/msvc /tmp/mingw-inst/hamlib-${new_ver}/lib/gcc
|
||||||
|
|
11
configure.ac
11
configure.ac
|
@ -200,6 +200,17 @@ darwin* | rhapsody*)
|
||||||
mingw* | pw32* | cygwin*)
|
mingw* | pw32* | cygwin*)
|
||||||
WINLDFLAGS="-Wl,--output-def,libhamlib.def -Wl,--add-stdcall-alias"
|
WINLDFLAGS="-Wl,--output-def,libhamlib.def -Wl,--add-stdcall-alias"
|
||||||
AC_SUBST([WINLDFLAGS])
|
AC_SUBST([WINLDFLAGS])
|
||||||
|
# Prerequisite for Mingw build (import and build internal ./libltdl):
|
||||||
|
# $ libtoolize --ltdl
|
||||||
|
# $ ( cd libltdl; ./configure --host=i586-mingw32msvc && make )
|
||||||
|
# Use internal ./libltdl during configure:
|
||||||
|
CFLAGS="${CFLAGS} -I./libltdl"
|
||||||
|
# use internal $(top_builddir)/libltdl during build:
|
||||||
|
INCLTDL="-I\$(top_builddir)/libltdl"
|
||||||
|
# - use internal $(top_builddir)/libltdl during build and library 'ltdlc':
|
||||||
|
LIBLTDL="-L\$(top_builddir)/libltdl -lltdlc"
|
||||||
|
AC_SUBST(INCLTDL)
|
||||||
|
AC_SUBST(LIBLTDL)
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue