Rearrange link line so the libraries come after the source.
authorPauli <paul.dale@oracle.com>
Fri, 7 Jul 2017 01:44:52 +0000 (11:44 +1000)
committerPauli <paul.dale@oracle.com>
Fri, 7 Jul 2017 01:44:52 +0000 (11:44 +1000)
Some linkers like it this way.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3879)

demos/bio/Makefile
demos/evp/Makefile

index 493e8a5..5a4e4a4 100644 (file)
@@ -27,4 +27,4 @@ server-cmod: server-cmod.o
 server-conf: server-conf.o
 
 client-arg client-conf saccept sconnect server-arg server-cmod server-conf:
-       $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
+       $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
index 72c6e81..3a85b22 100644 (file)
@@ -17,4 +17,4 @@ aesccm: aesccm.o
 aesgcm: aesgcm.o
 
 aesccm aesgcm:
-       $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
+       $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)