arsv/perl-cross

CC with spaces causing trouble?

rofl0r opened this issue · 2 comments

Configuring primary perl executable for i486-linux-musl (i486-pc-linux-musl)
Checking perl version ... perl5-5.34.0
Checking for cc ... ERROR: Supplied i486-linux-musl-gcc -L/home/ubuntu/x-prefix/i486/lib -isystem /home/ubuntu/x-prefix/i486/include is not usable
ERROR: configure --mode=target failed

could it be that shell executes "$CC" instead of $CC (without quotes) and causes this issue ?
i used CC="486-linux-musl-gcc -L/home/ubuntu/x-prefix/i486/lib -isystem /home/ubuntu/x-prefix/i486/include" ./configure --target=i486-linux-musl

arsv commented

Yes that's exactly what happens. 443f7bd

configure --with-cc= skips that check and everywhere else it's just $(CC) effectively.

thanks!