From 452711f8e741a7b8cd136ce65e6810ff9b8e6035 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Lucas=20Golini?= Date: Mon, 9 Jun 2014 23:27:03 -0300 Subject: [PATCH] Premake 4.4beta5 is causing problems with the shared libs. I'm trying to fix it. --- premake4.lua | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/premake4.lua b/premake4.lua index 5d97148fb..273007457 100644 --- a/premake4.lua +++ b/premake4.lua @@ -393,8 +393,12 @@ function build_link_configuration( package_name, use_ee_icon ) buildoptions{ "-Wall -Wno-long-long" } end - if os.is("macosx") and not is_xcode() and not _OPTIONS["with-static-eepp"] and package_name == "eepp" then - linkoptions { "-install_name @executable_path/../libs/macosx/libeepp-debug.dylib" } + if "4.4-beta5" == _PREMAKE_VERSION and not _OPTIONS["with-static-eepp"] and package_name == "eepp" then + if os.is("macosx") and not is_xcode() then + linkoptions { "-install_name @executable_path/../libs/macosx/libeepp-debug.dylib" } + elseif os.is("linux") then + linkoptions { "-Wl,-soname=\"libeepp-debug.so\"" } + end end targetname ( package_name .. "-debug" .. extension ) @@ -407,8 +411,12 @@ function build_link_configuration( package_name, use_ee_icon ) buildoptions { "-fno-strict-aliasing -O3 -s -ffast-math" } end - if os.is("macosx") and not is_xcode() and not _OPTIONS["with-static-eepp"] and package_name == "eepp" then - linkoptions { "-install_name @executable_path/../libs/macosx/libeepp.dylib" } + if "4.4-beta5" == _PREMAKE_VERSION and not _OPTIONS["with-static-eepp"] and package_name == "eepp" then + if os.is("macosx") and not is_xcode() then + linkoptions { "-install_name @executable_path/../libs/macosx/libeepp.dylib" } + elseif os.is("linux") then + linkoptions { "-Wl,-soname=\"libeepp.so\"" } + end end targetname ( package_name .. extension )