Fix atomic_ops build in Makefile.direct for Solaris
authorIvan Maidanski <ivmai@mail.ru>
Thu, 13 Jul 2017 20:27:15 +0000 (23:27 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 13 Jul 2017 20:27:15 +0000 (23:27 +0300)
* Makefile.direct (atomic_ops.o, atomic_ops_sysdeps.o): Expand "$<"
macro manually; add comment.

Makefile.direct

index 40a451e..0b61e53 100644 (file)
@@ -142,10 +142,11 @@ SPECIALCFLAGS= -I$(srcdir)/include -I$(AO_SRC_DIR)/src
 all: base_lib gctest$(EXEEXT)
 
 atomic_ops.o: $(AO_SRC_DIR)/src/atomic_ops.c
-       $(CC) $(CFLAGS) -c -o $@ $<
+       $(CC) $(CFLAGS) -c -o $@ $(AO_SRC_DIR)/src/atomic_ops.c
+# For some reason, Solaris make does not handle "$<" properly.
 
 atomic_ops_sysdeps.o: $(AO_SRC_DIR)/src/atomic_ops_sysdeps.S
-       $(CC) $(CFLAGS) -c -o $@ $<
+       $(CC) $(CFLAGS) -c -o $@ $(AO_SRC_DIR)/src/atomic_ops_sysdeps.S
 
 LEAKFLAGS= $(CFLAGS) -DFIND_LEAK