From 9a6c46f8b819675f5c36a4b1eaaab6f11dbb4c63 Mon Sep 17 00:00:00 2001
From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54>
Date: Sun, 5 Sep 2010 18:21:54 +0000
Subject: [PATCH] lpop

git-svn-id: http://svn.net-core.org/repos/t-engine4@1150 51575b47-30f0-44d4-a5cc-537603b46e54
---
 premake4.lua | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/premake4.lua b/premake4.lua
index b9a5825657..0c7bf781cd 100644
--- a/premake4.lua
+++ b/premake4.lua
@@ -12,6 +12,11 @@ newoption {
 	value       = "VM_Type",
 	description = "Forces compilation in 32bits mode, allowing to use the lua jit",
 }
+newoption {
+	trigger     = "relpath",
+	value       = "VM_Type",
+	description = "Links libraries relative to the application path for redistribution",
+}
 
 _OPTIONS.lua = _OPTIONS.lua or "default"
 
@@ -20,6 +25,7 @@ solution "TEngine"
 	objdir "obj"
 	defines {"GLEW_STATIC"}
 	if _OPTIONS.force32bits then buildoptions{"-m32"} linkoptions{"-m32"} libdirs{"/usr/lib32"} end
+	if _OPTIONS.relpath then linkoptions{"-Wl,-rpath -Wl,\\\$\$ORIGIN/lib "} end
 
 	includedirs {
 		"src",
-- 
GitLab