From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from gallifrey.ext.pengutronix.de ([2001:6f8:1178:4:5054:ff:fe8d:eefb] helo=thebe.hi.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1UNFwC-0008Ka-Qi for ptxdist@pengutronix.de; Wed, 03 Apr 2013 07:08:44 +0200 Date: Wed, 3 Apr 2013 07:08:43 +0200 From: Robert Schwebel Message-ID: <20130403050843.GA9785@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline Subject: [ptxdist] [PATCH v3] glew: remove libx dependency Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de src/visualinfo.c and src/glewinfo.c call XDestroyWindow from libX11: /opt/OSELAS.Toolchain-2012.12.0/arm-1136jfs-linux-gnueabi/gcc-4.7.2-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/bin/../lib/gcc/arm-1136jfs-linux-gnueabi/4.7.2/../../../../arm-1136jfs-linux-gnueabi/bin/ld: src/glewinfo.o: undefined reference to symbol 'XDestroyWindow' In order to solve this, we only build the libs now, leave out the tools and remove the dependency to libX11. Signed-off-by: Robert Schwebel --- Changes in v3: - build only the tools, remove dependency for libX11 Changes in v2: - get -lX11 via pkg-config (reported by Alexander Aring ) rules/glew.in | 1 - rules/glew.make | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rules/glew.in b/rules/glew.in index e337db1..3e48717 100644 --- a/rules/glew.in +++ b/rules/glew.in @@ -2,7 +2,6 @@ config GLEW bool - select XORG_LIB_X11 select XORG_SERVER_EXT_GLX select MESALIB prompt "glew" diff --git a/rules/glew.make b/rules/glew.make index 08acaff..a0141e3 100644 --- a/rules/glew.make +++ b/rules/glew.make @@ -44,7 +44,8 @@ GLEW_MAKE_OPT := \ LDFLAGS.GL='`$(CROSS_ENV) eval PATH=$(CROSS_PATH) $$PKG_CONFIG --libs glu`' \ GLEW_DEST=$(GLEW_PKGDIR)/usr \ LIBDIR=$(GLEW_PKGDIR)/usr/lib \ - M_ARCH=$(PTXCONF_ARCH_STRING) + M_ARCH=$(PTXCONF_ARCH_STRING) \ + lib/libGLEW.so.$(GLEW_VERSION) GLEW_INSTALL_OPT := \ $(GLEW_MAKE_OPT) \ -- 1.7.10.4 -- ptxdist mailing list ptxdist@pengutronix.de