Commit 5d571eaa by Ozkan Sezer Committed by Kai Tietz

configure.ac (FLAGS_FOR_TARGET): Add -L and -isystem paths for *-w64-mingw* and x86_64-*mingw*.

2009-11-06  Ozkan Sezer  <sezeroz@gmail.com>

        * configure.ac (FLAGS_FOR_TARGET):  Add -L and -isystem
        paths for *-w64-mingw* and x86_64-*mingw*.
        * configure: Regenerated.

From-SVN: r153964
parent d32599a6
2009-11-06 Ozkan Sezer <sezeroz@gmail.com>
* configure.ac (FLAGS_FOR_TARGET): Add -L and -isystem
paths for *-w64-mingw* and x86_64-*mingw*.
* configure: Regenerated.
2009-11-05 Joern Rennecke <amylaar@spamcop.net> 2009-11-05 Joern Rennecke <amylaar@spamcop.net>
* MAINTAINERS (Write After Approval): Add entry for my INRIA work. * MAINTAINERS (Write After Approval): Add entry for my INRIA work.
......
...@@ -7804,7 +7804,8 @@ case " $target_configdirs " in ...@@ -7804,7 +7804,8 @@ case " $target_configdirs " in
*" --with-newlib "*) *" --with-newlib "*)
case "$target" in case "$target" in
*-cygwin*) *-cygwin*)
FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include' ;; FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include'
;;
esac esac
# If we're not building GCC, don't discard standard headers. # If we're not building GCC, don't discard standard headers.
...@@ -7860,12 +7861,17 @@ case " $target_configdirs " in ...@@ -7860,12 +7861,17 @@ case " $target_configdirs " in
esac esac
;; ;;
esac esac
case "$target" in case "$target" in
x86_64-*-mingw* | *-w64-mingw*) x86_64-*mingw* | *-w64-mingw*)
# MinGW-w64 does not use newlib, nor does it use winsup. It may,
# however, use a symlink named 'mingw' in ${prefix} .
FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
;;
*-mingw*)
# MinGW can't be handled as Cygwin above since it does not use newlib.
FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/mingw -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/mingw/include -isystem $$s/winsup/w32api/include'
;; ;;
*-mingw*)
# Can't be handled as Cygwin above since Mingw does not use newlib.
FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/mingw -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/mingw/include -isystem $$s/winsup/w32api/include' ;;
esac esac
# Allow the user to override the flags for # Allow the user to override the flags for
......
...@@ -2960,7 +2960,8 @@ case " $target_configdirs " in ...@@ -2960,7 +2960,8 @@ case " $target_configdirs " in
*" --with-newlib "*) *" --with-newlib "*)
case "$target" in case "$target" in
*-cygwin*) *-cygwin*)
FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include' ;; FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include'
;;
esac esac
# If we're not building GCC, don't discard standard headers. # If we're not building GCC, don't discard standard headers.
...@@ -3016,12 +3017,17 @@ case " $target_configdirs " in ...@@ -3016,12 +3017,17 @@ case " $target_configdirs " in
esac esac
;; ;;
esac esac
case "$target" in case "$target" in
x86_64-*-mingw* | *-w64-mingw*) x86_64-*mingw* | *-w64-mingw*)
# MinGW-w64 does not use newlib, nor does it use winsup. It may,
# however, use a symlink named 'mingw' in ${prefix} .
FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
;;
*-mingw*)
# MinGW can't be handled as Cygwin above since it does not use newlib.
FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/mingw -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/mingw/include -isystem $$s/winsup/w32api/include'
;; ;;
*-mingw*)
# Can't be handled as Cygwin above since Mingw does not use newlib.
FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/mingw -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/mingw/include -isystem $$s/winsup/w32api/include' ;;
esac esac
# Allow the user to override the flags for # Allow the user to override the flags for
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment