[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
accept -arch flags
From: |
Peter O'Gorman |
Subject: |
accept -arch flags |
Date: |
Mon, 20 Jun 2005 23:34:00 +0900 |
User-agent: |
Mozilla Thunderbird 1.0 (Macintosh/20041206) |
Hi,
Well, Apple is switching to Intel. I figure that this means more people will
want to build fat during the transition.
This patch (one for HEAD, one for branch-1-5) will allow -arch flags through
to the linker.
Okay?
Peter
--
Peter O'Gorman - http://www.pogma.com
Index: ChangeLog
2005-06-20 Peter O'Gorman <address@hidden>
* ltmain.in [darwin]: Accept -arch flag.
from Bob Friesenhahn <address@hidden>
Index: ltmain.in
===================================================================
RCS file: /cvsroot/libtool/libtool/Attic/ltmain.in,v
retrieving revision 1.334.2.72
diff -u -3 -p -u -r1.334.2.72 ltmain.in
--- ltmain.in 16 Jun 2005 14:29:18 -0000 1.334.2.72
+++ ltmain.in 20 Jun 2005 14:17:29 -0000
@@ -1418,7 +1418,7 @@ EOF
continue
;;
- -framework)
+ -framework|-arch)
prev=darwin_framework
compiler_flags="$compiler_flags $arg"
compile_command="$compile_command $arg"
Index: ChangeLog
2005-06-20 Peter O'Gorman <address@hidden>
* conig/ltmain.m4sh [darwin]: Accept -arch flag.
from Ralf Wildenhues <address@hidden>
Index: config/ltmain.m4sh
===================================================================
RCS file: /cvsroot/libtool/libtool/config/ltmain.m4sh,v
retrieving revision 1.68
diff -u -3 -p -u -r1.68 ltmain.m4sh
--- config/ltmain.m4sh 5 Jun 2005 17:34:17 -0000 1.68
+++ config/ltmain.m4sh 20 Jun 2005 14:17:33 -0000
@@ -2325,6 +2325,15 @@ func_mode_link ()
prev=
continue
;;
+
+ arch)
+ prev=
+ compiler_flags="$compiler_flags $arg"
+ compile_command="$compile_command $arg"
+ finalize_command="$finalize_command $arg"
+ continue
+ ;;
+
framework)
case $host in
*-*-darwin*)
@@ -2559,7 +2568,13 @@ func_mode_link ()
fi
continue
;;
-
+ -arch)
+ prev=arch
+ compiler_flags="$compiler_flags $arg"
+ compile_command="$compile_command $arg"
+ finalize_command="$finalize_command $arg"
+ continue
+ ;;
-framework)
prev=framework
continue
- accept -arch flags,
Peter O'Gorman <=