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 1UMNf6-0004kh-HO for ptxdist@pengutronix.de; Sun, 31 Mar 2013 21:11:28 +0200 Date: Sun, 31 Mar 2013 21:11:28 +0200 From: Robert Schwebel Message-ID: <20130331191128.GA27525@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline Subject: [ptxdist] [PATCH v2] glew: link against libX11 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, so we need to link against libX11. Otherwhise this breaks down with /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' Signed-off-by: Robert Schwebel --- Changes in v2: - get -lX11 via pkg-config (reported by Alexander Aring ) rules/glew.make | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/glew.make b/rules/glew.make index 08acaff..955cbdd 100644 --- a/rules/glew.make +++ b/rules/glew.make @@ -41,7 +41,7 @@ GLEW_MAKE_OPT := \ LD=$(CROSS_CC) \ CFLAGS.EXTRA='$(CROSS_CPPFLAGS) $(CROSS_CFLAGS)' \ LDFLAGS.EXTRA='$(CROSS_LDFLAGS)' \ - LDFLAGS.GL='`$(CROSS_ENV) eval PATH=$(CROSS_PATH) $$PKG_CONFIG --libs glu`' \ + LDFLAGS.GL='`$(CROSS_ENV) eval PATH=$(CROSS_PATH) $$PKG_CONFIG --libs glu x11`' \ GLEW_DEST=$(GLEW_PKGDIR)/usr \ LIBDIR=$(GLEW_PKGDIR)/usr/lib \ M_ARCH=$(PTXCONF_ARCH_STRING) -- 1.7.10.4 -- ptxdist mailing list ptxdist@pengutronix.de