Premake 4.4beta5 is causing problems with the shared libs. I'm trying to fix it.

This commit is contained in:
Martín Lucas Golini
2014-06-09 23:27:03 -03:00
parent fcb635c346
commit 452711f8e7

View File

@@ -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 )