summaryrefslogtreecommitdiffstats
path: root/src/libotr-1-fixes.patch
blob: 77d44251e83fa0218c0b131e1a7b64938204f3b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
This file is part of MXE. See LICENSE.md for licensing information.

Contains ad hoc patches for cross building.

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Boris Nagaev <bnagaev@gmail.com>
Date: Thu, 16 Mar 2017 04:09:42 +0100
Subject: [PATCH] fix out-of-tree build

Fix the error:
libotr-4.1.1/toolkit/otr_parse.c:26:19: fatal error: proto.h:
    No such file or directory

diff --git a/toolkit/Makefile.am b/toolkit/Makefile.am
index 1111111..2222222 100644
--- a/toolkit/Makefile.am
+++ b/toolkit/Makefile.am
@@ -1,4 +1,4 @@
-AM_CPPFLAGS = -I$(includedir) -I../src @LIBGCRYPT_CFLAGS@
+AM_CPPFLAGS = -I$(includedir) -I$(top_srcdir)/src @LIBGCRYPT_CFLAGS@
 
 noinst_HEADERS = aes.h ctrmode.h parse.h sesskeys.h readotr.h sha1hmac.h
 

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Boris Nagaev <bnagaev@gmail.com>
Date: Thu, 16 Mar 2017 06:09:50 +0100
Subject: [PATCH] .pc: add -fstack-protector-all and private libs

The flags taken from the build log.

diff --git a/libotr.pc.in b/libotr.pc.in
index 1111111..2222222 100644
--- a/libotr.pc.in
+++ b/libotr.pc.in
@@ -7,5 +7,6 @@ Name: libotr
 Description: Off-the-Record Messaging Library
 Version: @VERSION@
 URL: https://otr.cypherpunks.ca/
-Libs: -L${libdir} -lotr
+Libs: -L${libdir} -lotr -fstack-protector-all
+Libs.private: -lgcrypt -lgpg-error -lintl -liconv
 Cflags: -I${includedir}