besser82 / libxcrypt

Extended crypt library for descrypt, md5crypt, bcrypt, and others
GNU Lesser General Public License v2.1
189 stars 52 forks source link

build-aux/compute-symver-floor: Fix handling of spaces in CFLAGS #126

Closed rpurdie closed 3 years ago

rpurdie commented 3 years ago

If you pass CFLAGS with a leading space, " " gets passed to popen and convinces gcc to try and open a file called " ". This results in a confusing error message like:

x86_64-pokysdk-linux-gcc: error: : No such file or directory

Avoid this by stripping empty elements out of CFLAGS.

Signed-off-by: Richard Purdie richard.purdie@linuxfoundation.org

besser82 commented 3 years ago

I've applied a slightly modified version of your patch in fed81d1a98fab52839b60a55447d368899034847.

Thanks for your contribution!