Ticket #3869: 0001-Build-with-fPIC.patch

File 0001-Build-with-fPIC.patch, 650 bytes (added by Itms, 8 years ago)
  • build/premake/premake4.lua

    From 04092c2cc5d7d9234d0cc23b382c3a1c4531e074 Mon Sep 17 00:00:00 2001
    From: na-Itms <na.itms76@gmail.com>
    Date: Sat, 3 Sep 2016 18:16:41 +0200
    Subject: [PATCH] Build with -fPIC
    
    ---
     build/premake/premake4.lua | 1 +
     1 file changed, 1 insertion(+)
    
    diff --git a/build/premake/premake4.lua b/build/premake/premake4.lua
    index 999759a..8dfaa66 100644
    a b function project_set_build_flags()  
    281281                end
    282282
    283283                if os.is("linux") or os.is("bsd") then
     284                    buildoptions { "-fPIC" }
    284285                    linkoptions { "-Wl,--no-undefined", "-Wl,--as-needed" }
    285286                end
    286287