blob: 863a30f3a6e19fd57cb5afe953aeee789b1d3288 (
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 358587b8a881bca4d933b7a1dd9471322b9f4bd7 Mon Sep 17 00:00:00 2001
From: Greg Nietsky <gregory@distrotech.co.za>
Date: Thu, 21 Nov 2013 12:05:25 +0200
Subject: [PATCH 1/2] Add support for x32 yasm
---
configure | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/configure b/configure
index 2026833..e7c1ce3 100755
--- a/configure
+++ b/configure
@@ -155,6 +155,7 @@ host_cpu="${host%%-*}"
host="${host#*-}"
host_vendor="${host%%-*}"
host_os="${host#*-}"
+host_ver="${host_os#*-}"
case $host_os in
beos*)
@@ -191,6 +192,9 @@ case $host_os in
SYS="LINUX"
CFLAGS="$CFLAGS -DHAVE_MALLOC_H"
LDFLAGS="$LDFLAGS -lm"
+ if [ "${host_ver}" == "gnux32" ];then
+ ABI="X32";
+ fi;
;;
cygwin*)
SYS="MINGW"
@@ -242,8 +246,10 @@ case $host_cpu in
LDFLAGS="$LDFLAGS -arch x86_64"
elif [ "$SYS" = MINGW ]; then
ASFLAGS="$ASFLAGS -f win32 -m amd64 -DPREFIX"
+ elif [ "$ABI" = X32 ]; then
+ ASFLAGS="$ASFLAGS -f elfx32 -m amd64"
else
- ASFLAGS="$ASFLAGS -f elf -m amd64"
+ ASFLAGS="$ASFLAGS -f elf64 -m amd64"
fi
;;
powerpc|powerpc64)
--
2.6.2
|