]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
xorg-x11-server: Only disable BIND_NOW for the modules.
authorSchantl Stefan <Stevee@ipfire.org>
Thu, 16 Sep 2010 18:10:02 +0000 (20:10 +0200)
committerSchantl Stefan <Stevee@ipfire.org>
Thu, 16 Sep 2010 18:10:02 +0000 (20:10 +0200)
This fixes #65.

pkgs/core/xorg-x11-server/xorg-x11-server.nm

index 6c82065b3875d0c24567f2dcb0c01f5f68ef94d1..dec64122509947f34cf9eb5f2101c6b08e462415 100644 (file)
@@ -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