From 7c307cdad7a6ff0b61255333d95c1c25e25404f1 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Mon, 13 Jul 2020 14:35:15 -0300 Subject: [PATCH] Fixing windows package. --- Makefile.in | 2 +- configure.ac | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index 541ec57..c83eaca 100644 --- a/Makefile.in +++ b/Makefile.in @@ -255,7 +255,7 @@ $(BINRLS)/$(PACKAGE_NAME)@EXEEXT@: \ @echo $< ... @$(LD) \ -o $@ \ - $(LDFLAGS) \ + $(LDFLAGS) @RLS_LDFLAGS@ \ $^ \ $(LIBS) diff --git a/configure.ac b/configure.ac index ff09cb9..28312ab 100644 --- a/configure.ac +++ b/configure.ac @@ -63,6 +63,7 @@ dnl --------------------------------------------------------------------------- case "$host" in *-mingw32|*-pc-msys) app_cv_osname="windows" + app_rls_ldflags="-mwindows" CFLAGS="$CFLAGS -pthread -D_WIN32_WINNT=0x0600" LDFLAGS="$LDFLAGS -pthread" @@ -71,6 +72,7 @@ case "$host" in app_win32_revision=$(date +%-y.%-m.%-d.%-H) AC_SUBST(WIN32_VERSION,$app_win32_revision) + app_win32_file_version=$(date +%-y,%-m,%-d,%-H) AC_SUBST(WIN32_FILE_VERSION,$app_win32_file_version) @@ -100,6 +102,7 @@ case "$host" in *) app_cv_osname="linux" + app_rls_ldflags="" CFLAGS="$CFLAGS -pthread -DLIBDIR=\$(libdir)" LDFLAGS="$LDFLAGS -pthread" @@ -113,6 +116,7 @@ case "$host" in esac AC_SUBST(OSNAME,$app_cv_osname) +AC_SUBST(RLS_LDFLAGS,$app_rls_ldflags) AC_SUBST(LIBS) AC_SUBST(LOGDIR) AC_SUBST(DLLEXT) -- libgit2 0.21.2