summaryrefslogtreecommitdiffstats
path: root/recipes-security/xmlsec1/xmlsec1/xmlsec1-examples-allow-build-in-separate-dir.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-security/xmlsec1/xmlsec1/xmlsec1-examples-allow-build-in-separate-dir.patch')
-rw-r--r--recipes-security/xmlsec1/xmlsec1/xmlsec1-examples-allow-build-in-separate-dir.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/recipes-security/xmlsec1/xmlsec1/xmlsec1-examples-allow-build-in-separate-dir.patch b/recipes-security/xmlsec1/xmlsec1/xmlsec1-examples-allow-build-in-separate-dir.patch
new file mode 100644
index 0000000..b0ced03
--- /dev/null
+++ b/recipes-security/xmlsec1/xmlsec1/xmlsec1-examples-allow-build-in-separate-dir.patch
@@ -0,0 +1,32 @@
1From ef8872185dcd05d20c93cd98317ede1913371c94 Mon Sep 17 00:00:00 2001
2From: Jackie Huang <jackie.huang@windriver.com>
3Date: Tue, 30 Dec 2014 11:18:17 +0800
4Subject: [PATCH] examples: allow build in separate dir
5
6Upstream-Status: Inappropriate [ OE specific ]
7
8Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
9---
10 examples/Makefile | 6 ++++--
11 1 file changed, 4 insertions(+), 2 deletions(-)
12
13diff --git a/examples/Makefile b/examples/Makefile
14index 0d72ad7..f9bccc6 100644
15--- a/examples/Makefile
16+++ b/examples/Makefile
17@@ -13,8 +13,10 @@ ifndef CC
18 CC = gcc
19 endif
20
21-CFLAGS += -I../include -g $(shell PKG_CONFIG_PATH=.. pkg-config --cflags xmlsec1 ) -DUNIX_SOCKETS
22-LDLIBS += -L../src/.libs -g $(shell PKG_CONFIG_PATH=.. pkg-config --libs xmlsec1 )
23+top_srcdir = ..
24+top_builddir = ..
25+CFLAGS += -I$(top_srcdir)/include -g $(shell PKG_CONFIG_PATH=$(top_srcdir) pkg-config --cflags xmlsec1 ) -DUNIX_SOCKETS
26+LDLIBS += -L$(top_builddir)/src/.libs -g $(shell PKG_CONFIG_PATH=$(top_srcdir) pkg-config --libs xmlsec1 )
27
28 DESTDIR = /usr/share/xmlsec1
29 install-ptest:
30--
311.9.1
32