mxe/src/wt-1-fixes.patch

126 lines
3.7 KiB
Diff
Raw Permalink Normal View History

This file is part of MXE. See LICENSE.md for licensing information.
2012-02-03 14:55:34 +00:00
2014-12-01 12:43:55 +00:00
Contains ad hoc patches for cross building.
2017-04-01 14:19:13 +01:00
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Boris Nagaev <bnagaev@gmail.com>
Date: Sat, 1 Apr 2017 15:17:43 +0200
2020-05-29 15:39:58 +01:00
Subject: [PATCH 1/3] Wt fixes
2012-06-18 12:50:30 +01:00
diff --git a/cmake/WtFindGm.txt b/cmake/WtFindGm.txt
2017-04-01 14:19:13 +01:00
index 1111111..2222222 100644
2012-06-18 12:50:30 +01:00
--- a/cmake/WtFindGm.txt
+++ b/cmake/WtFindGm.txt
@@ -59,6 +59,12 @@ IF(WIN32)
2012-02-03 14:49:28 +00:00
ELSE(GM_LIB AND GMPP_LIB AND GM_LIB_DEBUG AND GMPP_LIB_DEBUG AND GM_INCLUDE_DIR)
SET(GM_FOUND FALSE)
ENDIF(GM_LIB AND GMPP_LIB AND GM_LIB_DEBUG AND GMPP_LIB_DEBUG AND GM_INCLUDE_DIR)
+
+ IF(GM_INCLUDE_DIR AND GM_LIBS)
+ SET(GM_FOUND TRUE)
+ SET(GM_INCLUDE_DIRS ${GM_INCLUDE_DIR})
+ SET(GM_LIBRARIES optimized ${GM_LIBS})
+ ENDIF(GM_INCLUDE_DIR AND GM_LIBS)
ELSE(WIN32)
FIND_LIBRARY(GM_LIB
NAMES
2012-06-18 12:50:30 +01:00
diff --git a/cmake/WtFindPangoFt2.txt b/cmake/WtFindPangoFt2.txt
2017-04-01 14:19:13 +01:00
index 1111111..2222222 100644
2012-06-18 12:50:30 +01:00
--- a/cmake/WtFindPangoFt2.txt
+++ b/cmake/WtFindPangoFt2.txt
2019-09-15 22:17:48 +01:00
@@ -47,13 +47,17 @@ SET(PANGO_FT2_INCLUDE_DIRS
2012-02-03 14:49:28 +00:00
${GLIB2_INCLUDE_DIR}
${GLIB2_CONFIG_INCLUDE_DIR})
-SET(PANGO_FT2_LIBRARIES
- ${PANGO_FT2_LIBRARY}
- ${PANGO_LIBRARY}
- ${GOBJECT2_LIBRARY}
2017-04-01 14:19:13 +01:00
- ${GLIB2_LIBRARY}
- ${FONTCONFIG_LIBRARY}
- )
2012-02-03 14:49:28 +00:00
+IF(PANGO_FT2_LIBS)
+ SET(PANGO_FT2_LIBRARIES optimized ${PANGO_FT2_LIBS})
+ELSE(PANGO_FT2_LIBS)
+ SET(PANGO_FT2_LIBRARIES
+ ${PANGO_FT2_LIBRARY}
+ ${PANGO_LIBRARY}
+ ${GOBJECT2_LIBRARY}
2017-04-01 14:19:13 +01:00
+ ${GLIB2_LIBRARY}
+ ${FONTCONFIG_LIBRARY}
+ )
2012-02-03 14:49:28 +00:00
+ENDIF(PANGO_FT2_LIBS)
IF (PANGO_INCLUDE_DIR
AND FT2_INCLUDE_DIR
2018-08-15 08:01:29 +01:00
2018-09-17 22:32:54 +01:00
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Mark Brand <mabrand@mabrand.nl>
Date: Mon, 17 Sep 2018 23:31:42 +0200
2020-05-29 15:39:58 +01:00
Subject: [PATCH 2/3] fix missing gmtime_r definition
2018-09-17 22:32:54 +01:00
diff --git a/src/http/Reply.C b/src/http/Reply.C
index 1111111..2222222 100644
--- a/src/http/Reply.C
+++ b/src/http/Reply.C
@@ -13,6 +13,7 @@
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
+#include <unistd.h>
#include "Configuration.h"
#include "Connection.h"
#include "Reply.h"
2019-07-06 16:27:48 +01:00
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Mark Brand <mabrand@mabrand.nl>
Date: Sat, 6 Jul 2019 17:25:06 +0200
2020-05-29 15:39:58 +01:00
Subject: [PATCH 3/3] fix build on case senstive filesystem
2019-07-06 16:27:48 +01:00
2020-05-29 15:39:58 +01:00
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 1111111..2222222 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -574,7 +574,7 @@ IF(HAVE_SSL)
TARGET_LINK_LIBRARIES(wt PRIVATE ${OPENSSL_LIBRARIES})
INCLUDE_DIRECTORIES(${OPENSSL_INCLUDE_DIR})
IF(WIN32)
- TARGET_LINK_LIBRARIES(wt PRIVATE Crypt32.lib)
+ TARGET_LINK_LIBRARIES(wt PRIVATE crypt32.lib)
ENDIF(WIN32)
ELSE(HAVE_SSL)
MESSAGE("** Disabling crypto support (Auth::SHA1HashFunction, HTTPS support): requires OpenSSL.")
2019-07-06 16:27:48 +01:00
diff --git a/src/Wt/Dbo/backend/MySQL.C b/src/Wt/Dbo/backend/MySQL.C
index 1111111..2222222 100644
--- a/src/Wt/Dbo/backend/MySQL.C
+++ b/src/Wt/Dbo/backend/MySQL.C
@@ -9,8 +9,8 @@
#ifdef WT_WIN32
#define NOMINMAX
- // WinSock2.h warns that it should be included before windows.h
-#include <WinSock2.h>
+ // winsock2.h warns that it should be included before windows.h
+#include <winsock2.h>
#endif // WT_WIN32
#include "Wt/Dbo/backend/MySQL.h"
diff --git a/src/Wt/Dbo/backend/Postgres.C b/src/Wt/Dbo/backend/Postgres.C
index 1111111..2222222 100644
--- a/src/Wt/Dbo/backend/Postgres.C
+++ b/src/Wt/Dbo/backend/Postgres.C
@@ -9,8 +9,8 @@
#ifdef WT_WIN32
#define NOMINMAX
-// WinSock2.h warns that it should be included before windows.h
-#include <WinSock2.h>
+// winsock2.h warns that it should be included before windows.h
+#include <winsock2.h>
#endif // WT_WIN32
#include "Wt/Dbo/backend/Postgres.h"