]> git.ipfire.org Git - thirdparty/curl.git/commit
configure: only strip first -L from LDFLAGS
authorDaniel Stenberg <daniel@haxx.se>
Thu, 4 Jun 2020 16:11:36 +0000 (18:11 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 4 Jun 2020 21:15:28 +0000 (23:15 +0200)
commit4190f496882efc6e80bb4e81fc85bc40bfcc64e8
tree4595e299616188f5dcc893b84941ad40b51879ca
parentceab0febd06e0dfe4f608bbe55242227a9c9d9c9
configure: only strip first -L from LDFLAGS

In the logic that works out if a given OpenSSL path works, it stripped
off a possibly leading -L flag using an incorrect sed pattern which
would remove all instances of -L in the string, including if the path
itself contained that two-letter sequence!

The same pattern was used and is now updated in multiple places. Now it
only removes -L if it starts the strings.

Reported-by: Mohamed Osama
Fixes #5519
Closes #5521
configure.ac