Skip to content
Snippets Groups Projects
Commit b885b552 authored by Natanael Copa's avatar Natanael Copa
Browse files

x11/xorg-server: build without -z now linker flag

The dlloader does not work with the default hardened -z now linker
flag. There seems to b no way to forward linker flags to the modules
so we implement gentoo-style GCC_SPECS to turn off the linker flag.
parent 96cb3b82
No related branches found
No related tags found
No related merge requests found
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xorg-server
pkgver=1.6.1
pkgrel=0
pkgrel=1
pkgdesc="X.Org X servers"
url="http://xorg.freedesktop.org"
license="custom"
subpackages="$pkgname-dev $pkgname-doc xfbdev"
depends="
font-misc-misc
font-cursor-misc
libpciaccess
libx11
libxdamage
......@@ -19,6 +21,9 @@ depends="
pixman
uclibc
libgcc
xkeyboard-config
xkbcomp
xinit
"
makedepends="
libpciaccess-dev
......@@ -61,6 +66,12 @@ depends_dev="pixman-dev libpciaccess-dev"
build () {
cd "$srcdir"/$pkgname-$pkgver
# xorg modules does not work with the -z now and it seems like we
# cannot pass over the linker flag to .so files. so we tweak the
# gcc specs.
${CC:-gcc} -dumpspecs | sed 's/%(link_now)//g' > "$srcdir"/gcc-specs
export GCC_SPECS="$srcdir"/gcc-specs
./configure --prefix=/usr \
--sysconfdir=/etc/X11 \
--localstatedir=/var \
......@@ -72,8 +83,6 @@ build () {
--enable-ipv6 \
--enable-xfbdev \
--enable-kdrive \
--enable-kdrive-vesa \
--enable-randr \
--enable-xorg \
--enable-xv \
--enable-xres \
......@@ -83,19 +92,16 @@ build () {
--disable-config-hal \
--disable-dmx \
--disable-glx \
--disable-glx-tsl \
--disable-tslib \
--disable-xfree86-utils \
--disable-xinerama \
--disable-xnest \
--disable-xorgcfg \
--disable-xsdl \
--disable-aiglx \
--disable-xvmc \
--disable-screensaver \
--disable-xinerama \
--disable-xace \
--disable-dbe \
|| return 1
# --enable-xnest \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment