From 92652fb6e89216819522c341ca57bb5eb7a3c6b7 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Fri, 9 Mar 2018 00:11:40 +0100 Subject: [PATCH] Be stricter when substituting libraries This is being replaced by platform.sh. --- src/makefile.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/makefile.c b/src/makefile.c index 4e21fab..4dec742 100644 --- a/src/makefile.c +++ b/src/makefile.c @@ -720,13 +720,8 @@ static void _binary_ldflags(Makefile * makefile, String const * ldflags) } for(i = 0; libs[i] != NULL; i++) { - snprintf(buf, sizeof(buf), "-l %s", libs[i]); + snprintf(buf, sizeof(buf), "-l%s", libs[i]); if((q = string_find(p, buf)) == NULL) - { - snprintf(buf, sizeof(buf), "-l%s", libs[i]); - q = string_find(p, buf); - } - if(q == NULL) continue; memmove(q, q + strlen(buf), strlen(q) - strlen(buf) + 1); }