Issue #9010 has been updated by jeremyevans0 (Jeremy Evans).


This appears to still be an issue in the master branch.  It appears to be first hit when linking extensions (example uses `--prefix="/home/jeremy/local foo bar"`):

```
cc -shared -fPIC -o ../../../.ext/x86_64-openbsd6.9/-test-/RUBY_ALIGNOF.so c.o -L. -L../../.. -L. -L/usr/local/lib -fstack-protector-strong -Wl,-E -L/usr/local/lib    -Wl,-rpath,/home/jeremy/local foo bar/lib -L/home/jeremy/local foo bar/lib -lruby  -lm   -lc
```

Seems like quoting the `-Wl,-rpath,` and `-L` arguments may fix this particular case, but I'm not sure if that will cause other problems.

----------------------------------------
Bug #9010: ./configure --prefix= cannot handle directories with spaces
https://bugs.ruby-lang.org/issues/9010#change-91699

* Author: postmodern (Hal Brodigan)
* Status: Assigned
* Priority: Normal
* Assignee: nobu (Nobuyoshi Nakada)
* ruby -v: trunk
----------------------------------------
It appears that the linking task fails when the --prefix value contains spaces.

Steps to Reproduce:

1. ./configure --prefix="$HOME/foo bar"
2. make

Expected Result: success
Actual Result:

make[2]: Entering directory `/home/hal/src/ruby-2.0.0-p247'
linking ruby
gcc: error: bar/lib: No such file or directory
gcc: error: bar/lib: No such file or directory
make[2]: *** [ruby] Error 1
make[2]: Leaving directory `/home/hal/src/ruby-2.0.0-p247'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/hal/src/ruby-2.0.0-p247'
make: *** [build-ext] Error 2




-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>