]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
fix distro/ Makefiles
authorWolfgang Bumiller <wry.git@bumiller.com>
Fri, 26 Apr 2013 15:56:08 +0000 (17:56 +0200)
committerWolfgang Bumiller <wry.git@bumiller.com>
Fri, 26 Apr 2013 15:56:08 +0000 (17:56 +0200)
distro/archlinux/this/Makefile

index bf5a3e86e7f9ca8842ee710e6078013d159fd685..fa863d100aa77a62c2664189637bcbad881d1d11 100644 (file)
@@ -14,12 +14,14 @@ CFLAGS  :=
 
 
 ifneq (, $(findstring i686, $(CARCH)))
-       CFLAGS := -m32
+       CFLAGS += -m32
+       LDFLAGS += -m32
 endif
 
 base:
        $(MAKE) -C $(BASEDIR) clean
-       $(MAKE) -C $(BASEDIR) OPTIONAL=$(CFLAGS) DESTDIR=$(DESTDIR) PREFIX=$(PREFIX) install
+       CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" \
+         $(MAKE) -C $(BASEDIR) "DESTDIR=$(DESTDIR)" "PREFIX=$(PREFIX)" install
        @echo "pkgname = gmqcc" > $(PKGINFO)
        @echo "pkgver = $(MAJOR).$(MINOR).$(PATCH)-$(PKGREL)" >> $(PKGINFO)
        @echo "pkgdesc = An Improved Quake C Compiler" >> $(PKGINFO)