Testsuite: fix build on non-gnumake platforms
authorJeremy Harris <jgh146exb@wizmail.org>
Tue, 10 Mar 2020 22:40:27 +0000 (22:40 +0000)
committerJeremy Harris <jgh146exb@wizmail.org>
Tue, 10 Mar 2020 22:40:27 +0000 (22:40 +0000)
Broken-by: effbc122d
test/Makefile.in

index 6a9603cf3740111303719e04e6b6028620a12cbd..9984ee43faa859152d69122df4d8e26e270d4922 100644 (file)
@@ -59,7 +59,7 @@ bin/client-ssl: $(SRC)/client.c Makefile
                $(CC) $(CFLAGS) -DHAVE_OPENSSL $(LDFLAGS) -o bin/client-ssl $(SRC)/client.c -lssl -lcrypto $(LIBS)
 
 $(CLIENT_ANYTLS): $(CLIENT_GNUTLS) $(CLIENT_OPENSSL)
-               ln -sf `basename $<` $@
+               [ -n "$(CLIENT_GNUTLS)" ] && ln -sf $(CLIENT_GNUTLS) $@ || ln -sf $(CLIENT_OPENSSL) $@
 
 bin/checkaccess:$(SRC)/checkaccess.c Makefile
                $(CC) $(CFLAGS) -DNO_TLS $(LDFLAGS) -o bin/checkaccess $(SRC)/checkaccess.c