From 0b5ef1bc5ff77599e5403e075d70cb87350bf3c0 Mon Sep 17 00:00:00 2001
From: "Meredith L. Patterson" <mlp@thesmartpolitenerd.com>
Date: Mon, 17 Mar 2014 03:23:27 +0100
Subject: [PATCH] Append '64' to libpath on non-Darwin platforms.

---
 SConstruct | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/SConstruct b/SConstruct
index bd0317d9..0eddfc7e 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1,6 +1,7 @@
 # -*- python -*-
 import os
 import os.path
+import platform
 import sys
 
 
@@ -20,6 +21,7 @@ if not 'bindings' in env:
 def calcInstallPath(*elements):
     path = os.path.abspath(os.path.join(*map(env.subst, elements)))
     if 'DESTDIR' in env:
+        print "Prefixing " + env['DESTDIR']
         path = os.path.join(env['DESTDIR'], os.path.relpath(path, start="/"))
     return path
 
@@ -34,6 +36,8 @@ if 'DESTDIR' in env:
 
 
 env['libpath'] = calcInstallPath("$prefix", "lib")
+if env['PLATFORM'] != 'darwin' and platform.machine()[-2:] == '64':
+    env['libpath'] += '64'
 env['incpath'] = calcInstallPath("$prefix", "include", "hammer")
 env['parsersincpath'] = calcInstallPath("$prefix", "include", "hammer", "parsers")
 env['backendsincpath'] = calcInstallPath("$prefix", "include", "hammer", "backends")
-- 
GitLab