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.
LIBGLAZE_SONAME = $(LIBGLAZE_LINKER_NAME).$(MAJOR)
LIBGLAZE_LIBNAME = $(LIBGLAZE_SONAME).$(MINOR).$(RELEASE)
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