libunwind:rebuild 32 bit
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user