Hi!

When the compile wrapper is used to link, it needs to also
transform /absolute/object/files.obj to win32 format for
easy consumption by MSVC.

Ok for the msvc branch?

Cheers,
Peter
>From 827d6b341a858b3b9a4c90dc157846e5b242bc4b Mon Sep 17 00:00:00 2001
From: Peter Rosin <p...@lysator.liu.se>
Date: Tue, 31 Aug 2010 18:51:48 +0200
Subject: [PATCH] Do file name conversion for object files in the compile 
wrapper.

* lib/compile (func_cl_wrapper): Do file name conversion for object
files (i.e. extensions .obj, .OBJ, .o and .O) if needed.

Signed-off-by: Peter Rosin <p...@lysator.liu.se>
---
 ChangeLog   |    6 ++++++
 lib/compile |    2 +-
 2 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 9a054e2..515bd12 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-08-31  Peter Rosin  <p...@lysator.liu.se>
+
+       Do file name conversion for object files in the compile wrapper.
+       * lib/compile (func_cl_wrapper): Do file name conversion for object
+       files (i.e. extensions .obj, .OBJ, .o and .O) if needed.
+
 2010-08-16  Peter Rosin  <p...@lysator.liu.se>
 
        Optimize compile script on MSYS.
diff --git a/lib/compile b/lib/compile
index b6419ce..5bd061b 100755
--- a/lib/compile
+++ b/lib/compile
@@ -142,7 +142,7 @@ func_cl_wrapper ()
          set x "$@" -Tp"$file"
          shift
          ;;
-       *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib)
+       *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO])
          func_file_conv "$1" mingw
          set x "$@" "$file"
          shift
-- 
1.7.1

Reply via email to