Fix build on Solaris
authorMatt Caswell <matt@openssl.org>
Tue, 15 Dec 2015 23:35:31 +0000 (23:35 +0000)
committerMatt Caswell <matt@openssl.org>
Tue, 15 Dec 2015 23:40:22 +0000 (23:40 +0000)
Solaris builds were failing during async compilation because the .o files
created from compiling the corresponding .c files held in async/arch were
ending up in the top level async directory. Consequently the link fails
because it can't find the .o files.

Thanks to Richard Levitte for pointing me in the right direction on this.

Reviewed-by: Richard Levitte <levitte@openssl.org>
crypto/async/Makefile

index 44da77f3e011c49e57562d9620eb8dcb4a89896f..bdecc4e33af883552d71e5be07e9a49e7474bfd4 100644 (file)
@@ -74,6 +74,10 @@ clean:
        rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
        rm -f arch/*.o arch/*.obj arch/lib arch/tags arch/core arch/.pure arch/.nfs* arch/*.old arch/*.bak arch/fluff
 
+# Different flavours of make disagree on where output goes
+.c.o:
+       $(CC) $(CFLAGS) -c $< -o $@
+
 # DO NOT DELETE THIS LINE -- make depend depends on it.
 
 arch/async_null.o: ../../e_os.h ../../include/openssl/async.h