libunwind:rebuild 32 bit

This commit is contained in:
Rmys
2018-11-06 02:57:12 +03:00
parent 6725c49e10
commit 2c40dd6bd2
2 changed files with 46 additions and 3 deletions
+23 -2
View File
@@ -6,14 +6,31 @@
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
def setup():
pisitools.flags.add("-U_FORTIFY_SOURCE")
autotools.autoreconf("-vfi")
autotools.configure("--enable-shared \
--disable-static")
options = "--enable-shared \
--disable-static \
"
if get.buildTYPE() == "emul32":
shelltools.export("CC", "%s -m32" % get.CC())
shelltools.export("CXX", "%s -m32" % get.CXX())
shelltools.export("PKG_CONFIG_PATH", "/usr/lib32/pkgconfig")
options += "--build=i686-pc-linux-gnu \
--host=i686-pc-linux-gnu \
--prefix=/emul32 \
--libdir=/usr/lib32 \
--disable-documentation \
"
autotools.configure(options)
pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
@@ -27,6 +44,10 @@ def build():
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
if get.buildTYPE() == "emul32":
pisitools.insinto("/usr/include", "include/libunwind-x86.h")
return
# FIXME: Fedora removes it, Suse keeps it, breaks samba build, investigate further
pisitools.remove("/usr/lib/libunwind*.a")