From aa4e646b183f353555b84f767620cdabe049afe7 Mon Sep 17 00:00:00 2001 From: Juergen Buchmueller Date: Fri, 21 Oct 2016 14:54:52 +0200 Subject: [PATCH] xcruiser: fix gcc6 build The order of object files and libraries is important. Create a Makefile that puts the $(LIBS) after the *.o files. --- srcpkgs/xcruiser/template | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/srcpkgs/xcruiser/template b/srcpkgs/xcruiser/template index a1a554c5d84..e8f872155b8 100644 --- a/srcpkgs/xcruiser/template +++ b/srcpkgs/xcruiser/template @@ -10,12 +10,14 @@ license="GPL-2" homepage="http://${pkgname}.sourceforge.net/" distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}/${pkgname}-${version}/${pkgname}-${version}.tar.gz" checksum=917b68dc06389bfcdde742f0798f61cdeaea2ae3c6567960c33f7634d4861ce5 -LDFLAGS="-lXaw -lXmu -lXt -lX11 -lm" +LIBS="-lXaw -lXmu -lXt -lX11 -lm" pre_build() { local sources sources=(*.c) - echo "${pkgname}: ${sources[@]/%c/o}" >Makefile + echo "LIBS=${LIBS}" >Makefile + echo "${pkgname}: ${sources[@]/%c/o}" >>Makefile + echo ' $(CC) $(LDFLAGS) -o $@ $^ $(LIBS)' >>Makefile } do_install() {