Skip to content

Commit

Permalink
Add another workaround for the MinGW mkgmtime64-related problem
Browse files Browse the repository at this point in the history
This fixes an error

    /usr/bin/i686-w64-mingw32-ld: .../spyre/_3rdparty/tgt/i686-w64-mingw32/lib/libyara.a(pe_utils.o):pe_utils.c:(.text+0x496): undefined reference to `_imp___mkgmtime64'

when building the Win32 Spyre binary
  • Loading branch information
hillu committed Aug 30, 2019
1 parent a6edc90 commit 046cd4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 3rdparty.mk
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ _3rdparty/build/$1/yara-$(yara_VERSION)/.build-stamp: _3rdparty/src/yara-$(yara_
--disable-shared \
--disable-magic --disable-cuckoo --enable-dotnet \
CC=$$(or $$(shell PATH=$$(PATH) which $1-gcc),$$(shell PATH=$$(PATH) which gcc)) \
CPPFLAGS="-I$(abspath _3rdparty/tgt/$1/include)" \
CPPFLAGS="-I$(abspath _3rdparty/tgt/$1/include) $(if $(findstring -mingw32,$1),-D__CRT__NO_INLINE)" \
CFLAGS="$(if $(findstring -linux-musl,$1),-static)" \
LDFLAGS="-L$(abspath _3rdparty/tgt/$1/lib) $$(shell \
pkg-config --static --libs libcrypto \
Expand Down

0 comments on commit 046cd4f

Please sign in to comment.