@@ -397,7 +397,17 @@ valopt sysconfdir "/etc" "install system configuration files"
397
397
valopt datadir " ${CFG_PREFIX} /share" " install data"
398
398
valopt infodir " ${CFG_PREFIX} /share/info" " install additional info"
399
399
valopt mandir " ${CFG_PREFIX} /share/man" " install man pages in PATH"
400
- valopt libdir " ${CFG_PREFIX} /lib" " install libraries"
400
+
401
+ # On windows we just store the libraries in the bin directory because
402
+ # there's no rpath
403
+ # FIXME: Thise needs to parameterized over target triples. Do it in platform.mk
404
+ LIBDIR_RELATIVE=lib
405
+ if [ " $CFG_OSTYPE " = " pc-mingw32" ]
406
+ then
407
+ LIBDIR_RELATIVE=bin
408
+ fi
409
+
410
+ valopt libdir " ${CFG_PREFIX} /${LIBDIR_RELATIVE} " " install libraries"
401
411
valopt rustlibdir " rustlib" " subdirectory name for rustc's libraries"
402
412
403
413
# Validate Options
@@ -560,10 +570,10 @@ then
560
570
step_msg " on OS X 10.9, forcing use of clang"
561
571
CFG_ENABLE_CLANG=1
562
572
putvar CFG_ENABLE_CLANG
563
- else
564
- # on OS X, with xcode 5 and newer, certain developers may have
573
+ else
574
+ # on OS X, with xcode 5 and newer, certain developers may have
565
575
# cc, gcc and g++ point to a mixture of clang and gcc
566
- # if so, this will create very strange build errors
576
+ # if so, this will create very strange build errors
567
577
# this last stanza is to detect some such problems and save the future rust
568
578
# contributor some time solving that issue.
569
579
# this detection could be generalized to other OSes aside from OS X
576
586
# note that for xcode 5, g++ points to clang, not clang++
577
587
if ! (( chk_cc gcc clang && chk_cc g++ clang) ||
578
588
(chk_cc gcc gcc &&( chk_cc g++ g++ || chk g++ gcc)) ) then
579
- err " the gcc and g++ in your path point to different compilers.
580
- Check which versions are in your path with cc --version and g++ --version.
589
+ err " the gcc and g++ in your path point to different compilers.
590
+ Check which versions are in your path with cc --version and g++ --version.
581
591
To resolve this problem, either fix your PATH or run configure with --enable-clang"
582
592
fi
583
593
751
761
done
752
762
done
753
763
754
- # On windows we just store the libraries in the bin directory because
755
- # there's no rpath
756
- # FIXME: Thise needs to parameterized over target triples. Do it in platform.mk
757
- CFG_LIBDIR=lib
758
- if [ " $CFG_OSTYPE " = " pc-mingw32" ]
759
- then
760
- CFG_LIBDIR=bin
761
- fi
762
-
763
764
for h in $CFG_HOST
764
765
do
765
766
for t in $CFG_TARGET
770
771
make_dir $h /stage$i /bin
771
772
772
773
# host lib dir
773
- make_dir $h /stage$i /$CFG_LIBDIR
774
+ make_dir $h /stage$i /$LIBDIR_RELATIVE
774
775
775
776
# host test dir
776
777
make_dir $h /stage$i /test
777
778
778
779
# target bin dir
779
- make_dir $h /stage$i /$CFG_LIBDIR /$CFG_RUSTLIBDIR /$t /bin
780
+ make_dir $h /stage$i /$LIBDIR_RELATIVE /$CFG_RUSTLIBDIR /$t /bin
780
781
781
782
# target lib dir
782
- make_dir $h /stage$i /$CFG_LIBDIR /$CFG_RUSTLIBDIR /$t /$CFG_LIBDIR
783
+ make_dir $h /stage$i /$LIBDIR_RELATIVE /$CFG_RUSTLIBDIR /$t /lib
783
784
done
784
785
785
786
# Fix stage0:
786
- make_dir $h /stage0/$CFG_LIBDIR /rustc/$t /bin
787
- make_dir $h /stage0/$CFG_LIBDIR /rustc/$t /$CFG_LIBDIR
787
+ make_dir $h /stage0/$LIBDIR_RELATIVE /rustc/$t /bin
788
+ make_dir $h /stage0/$LIBDIR_RELATIVE /rustc/$t /$LIBDIR_RELATIVE
788
789
789
790
done
790
791
@@ -1038,6 +1039,7 @@ putvar CFG_TARGET
1038
1039
putvar CFG_C_COMPILER
1039
1040
putvar CFG_LIBDIR
1040
1041
putvar CFG_RUSTLIBDIR
1042
+ putvar LIBDIR_RELATIVE
1041
1043
putvar CFG_DISABLE_MANAGE_SUBMODULES
1042
1044
putvar CFG_ANDROID_CROSS_PATH
1043
1045
putvar CFG_MINGW32_CROSS_PATH
0 commit comments