From: Schantl Stefan Date: Thu, 16 Sep 2010 18:10:02 +0000 (+0200) Subject: xorg-x11-server: Only disable BIND_NOW for the modules. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d38b9a202dfc38c50248a4be01f46787ce28fc61;p=ipfire-3.x.git xorg-x11-server: Only disable BIND_NOW for the modules. This fixes #65. --- diff --git a/pkgs/core/xorg-x11-server/xorg-x11-server.nm b/pkgs/core/xorg-x11-server/xorg-x11-server.nm index 6c82065b3..dec641225 100644 --- a/pkgs/core/xorg-x11-server/xorg-x11-server.nm +++ b/pkgs/core/xorg-x11-server/xorg-x11-server.nm @@ -53,7 +53,7 @@ endef PKG_TARBALL = xorg-server-$(PKG_VER).tar.bz2 -CFLAGS += -Wstrict-overflow -rdynamic -Wl,-z,lazy +CFLAGS += -Wstrict-overflow -rdynamic QUALITY_AGENT_PERMIT_NOT_FULL_RELRO = yes @@ -90,6 +90,27 @@ define STAGE_PREPARE_CMDS cd $(DIR_APP) && autoreconf -vfi endef +# Remove BIND_NOW flag from server modules to provide autoloading of them if needed +# by the server itself. +define STAGE_CONFIGURE_CMDS + cd $(DIR_APP) && sed -i \ + -e "s/^CFLAGS.*/& -Wl,-z,lazy/" \ + -e "s/^CCASFLAGS.*/& -Wl,-z,lazy/" \ + \ + hw/xfree86/dixmods/Makefile \ + hw/xfree86/dixmods/extmod/Makefile \ + hw/xfree86/dri/Makefile \ + hw/xfree86/dri2/Makefile \ + hw/xfree86/exa/Makefile \ + hw/xfree86/fbdevhw/Makefile \ + hw/xfree86/i2c/Makefile \ + hw/xfree86/int10/Makefile \ + hw/xfree86/shadowfb/Makefile \ + hw/xfree86/vbe/Makefile \ + hw/xfree86/vgahw/Makefile \ + hw/xfree86/xaa/Makefile +endef + define STAGE_INSTALL cd $(DIR_APP) && make install DESTDIR=$(BUILDROOT) \ moduledir=/usr/lib/xorg/modules