forked from libevent/libevent
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create README.md for this repository
Signed-off-by: Mohammad AlSaleh <[email protected]>
- Loading branch information
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# NOTE | ||
|
||
libevent upstream explicitly disables 'libevent_pthreads' when building | ||
for Windows. | ||
|
||
This repository exists for the sole purpose of building pthreads-enabled | ||
libevent with mingw-w64. | ||
|
||
Original README moved to `README_libevent.md`. | ||
|
||
# Build Instructions | ||
|
||
## NOTE | ||
|
||
This build only covers what saldl needs. Shared libraries are disabled. | ||
OpenSSL support is disabled. mingw-w64 is the only dependency. | ||
|
||
## Win32 | ||
|
||
bld_ver="`git describe --dirty`" | ||
bld_dir="libevent-${bld_ver#release-*}"-win32 | ||
|
||
mkdir ${bld_dir} | ||
|
||
./autogen.sh | ||
|
||
./configure --prefix='' --host=i686-w64-mingw32 --disable-shared \ | ||
--disable-openssl --disable-samples --disable-libevent-regress | ||
|
||
make -j3 | ||
|
||
|
||
make DESTDIR=${PWD}/${bld_dir} install | ||
zip --recurse-paths ${bld_dir}.zip ${bld_dir} | ||
|
||
|
||
## Win64 | ||
|
||
bld_ver="`git describe --dirty`" | ||
bld_dir="libevent-${bld_ver#release-*}"-win64 | ||
|
||
mkdir ${bld_dir} | ||
|
||
./autogen.sh | ||
|
||
./configure --prefix='' --host=x86_64-w64-mingw32 --disable-shared \ | ||
--disable-openssl --disable-samples --disable-libevent-regress | ||
|
||
make -j3 | ||
|
||
|
||
make DESTDIR=${PWD}/${bld_dir} install | ||
zip --recurse-paths ${bld_dir}.zip ${bld_dir} |