From 1d80058c851fb31dcc46ddcc7ceac12297fa9ca6 Mon Sep 17 00:00:00 2001
From: Joe Rozner <joe@prevoty.com>
Date: Thu, 21 Nov 2013 12:37:36 -0800
Subject: [PATCH] Properly name the lib

Set the proper path for the shared library so that anything linking
against it will be able to find the library.
---
 SConstruct | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/SConstruct b/SConstruct
index ebed8b4e..0512d71a 100644
--- a/SConstruct
+++ b/SConstruct
@@ -78,6 +78,8 @@ if os.getenv("CC") == "clang" or env['PLATFORM'] == 'darwin':
     env.Replace(CC="clang",
                 CXX="clang++")
 
+env.Append(SHLINKFLAGS = ['-install_name ' + '$TARGET'])
+
 env["ENV"].update(x for x in os.environ.items() if x[0].startswith("CCC_"))
 
 #rootpath = env['ROOTPATH'] = os.path.abspath('.')
-- 
GitLab