From f2c5ebbfe53ee598aa2b354f0e013aba3a10fffc Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Wed, 21 Aug 2013 17:15:41 -0700 Subject: [PATCH] Don't compile 32- or 64-bit components when not supported The configure script is already kind enough to detect whether we can compile 32-bit- or 64-bit-specific components. Now, fix the Makefile to actually pay attention and not try to compile something which we know will not work. --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0246543..f13fa87 100644 --- a/Makefile +++ b/Makefile @@ -24,7 +24,15 @@ LIBGLAZE_LINKER_NAME = libglaze.so LIBGLAZE_SONAME = $(LIBGLAZE_LINKER_NAME).$(MAJOR) LIBGLAZE_LIBNAME = $(LIBGLAZE_SONAME).$(MINOR).$(RELEASE) -TARGETS = $(LIBGLAZE_LIBNAME) lib64/libGL.so.1 lib32/libGL.so.1 +TARGETS = $(LIBGLAZE_LIBNAME) + +ifeq ($(COMPILER_SUPPORTS_32),Yes) +TARGETS += lib32/libGL.so.1 +endif + +ifeq ($(COMPILER_SUPPORTS_64),Yes) +TARGETS += lib64/libGL.so.1 +endif all: $(TARGETS) -- 2.43.0