The symlinks for dynamic libs are not extracted correctly
E.g.:
$ ls -l ~/.dvm/compilers/dmd-2.100.2/linux/lib64/
total 64224
-rw-rw-r-- 1 steves steves 56738472 Sep 10 06:02 libphobos2.a
-rw-rw-r-- 1 steves steves 21 Sep 10 06:02 libphobos2.so
-rw-rw-r-- 1 steves steves 21 Sep 10 06:02 libphobos2.so.0.100
-rw-rw-r-- 1 steves steves 9012616 Sep 10 06:02 libphobos2.so.0.100.2
It should look like this:
-rw-rw-r-- 1 steves steves 56738472 Sep 10 06:02 libphobos2.a
lrwxrwxrwx 1 steves steves 21 Sep 20 23:37 libphobos2.so -> libphobos2.so.0.100.2
lrwxrwxrwx 1 steves steves 21 Sep 20 23:37 libphobos2.so.0.100 -> libphobos2.so.0.100.2
-rw-rw-r-- 1 steves steves 9012616 Sep 10 06:02 libphobos2.so.0.100.2
This results in a failure when you try to use the shared lib version of phobos:
$ dmd -defaultlib=libphobos2.so prog.d
/usr/bin/ld:/home/steves/.dvm/compilers/dmd-2.100.2/linux/bin/../lib64/libphobos2.so: file format not recognized; treating as linker script
/usr/bin/ld:/home/steves/.dvm/compilers/dmd-2.100.2/linux/bin/../lib64/libphobos2.so:0: syntax error
The symlinks for dynamic libs are not extracted correctly
E.g.:
$ ls -l ~/.dvm/compilers/dmd-2.100.2/linux/lib64/ total 64224 -rw-rw-r-- 1 steves steves 56738472 Sep 10 06:02 libphobos2.a -rw-rw-r-- 1 steves steves 21 Sep 10 06:02 libphobos2.so -rw-rw-r-- 1 steves steves 21 Sep 10 06:02 libphobos2.so.0.100 -rw-rw-r-- 1 steves steves 9012616 Sep 10 06:02 libphobos2.so.0.100.2It should look like this:
This results in a failure when you try to use the shared lib version of phobos:
$ dmd -defaultlib=libphobos2.so prog.d /usr/bin/ld:/home/steves/.dvm/compilers/dmd-2.100.2/linux/bin/../lib64/libphobos2.so: file format not recognized; treating as linker script /usr/bin/ld:/home/steves/.dvm/compilers/dmd-2.100.2/linux/bin/../lib64/libphobos2.so:0: syntax error