summaryrefslogtreecommitdiffstats
path: root/recipes-test/udt/files/0002-Makefile-Add-support-for-building-on-powerpc64.patch
blob: 91924741f97c2bc23b56567b4eef6afc6af50e3a (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
44
45
46
From 9bf5e5746bb57d78162210f7f7cddb002c704f84 Mon Sep 17 00:00:00 2001
From: Josep Puigdemont <josep.puigdemont@enea.com>
Date: Thu, 8 May 2014 15:00:07 +0200
Subject: [PATCH 2/2] Makefile: Add support for building on powerpc64

Signed-off-by: Josep Puigdemont <josep.puigdemont@enea.com>

Upstream-Status: Pending
---
 udt4/app/Makefile | 4 ++++
 udt4/src/Makefile | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/udt4/app/Makefile b/udt4/app/Makefile
index 0ee2562..b046b83 100644
--- a/udt4/app/Makefile
+++ b/udt4/app/Makefile
@@ -22,6 +22,10 @@ ifeq ($(arch), POWERPC)
    CCFLAGS += -mcpu=powerpc
 endif
 
+ifeq ($(arch), POWERPC64)
+   CCFLAGS += -mcpu=powerpc64
+endif
+
 ifeq ($(arch), IA64)
    CCFLAGS += -DIA64
 endif
diff --git a/udt4/src/Makefile b/udt4/src/Makefile
index 1f64b8d..0d94d48 100644
--- a/udt4/src/Makefile
+++ b/udt4/src/Makefile
@@ -22,6 +22,10 @@ ifeq ($(arch), POWERPC)
    CCFLAGS += -mcpu=powerpc
 endif
 
+ifeq ($(arch), POWERPC64)
+   CCFLAGS += -mcpu=powerpc64
+endif
+
 ifeq ($(arch), SPARC)
    CCFLAGS += -DSPARC
 endif
-- 
1.9.0