path: root/gcc-4.4.3/ltgcc.m4
diff options
authorJing Yu <jingyu@google.com>2010-07-22 14:03:48 -0700
committerJing Yu <jingyu@google.com>2010-07-22 14:03:48 -0700
commitb094d6c4bf572654a031ecc4afe675154c886dc5 (patch)
tree89394c56b05e13a5413ee60237d65b0214fd98e2 /gcc-4.4.3/ltgcc.m4
parentdc34721ac3bf7e3c406fba8cfe9d139393345ec5 (diff)
commit gcc-4.4.3 which is used to build gcc-4.4.3 Android toolchain in master.
The source is based on fsf gcc-4.4.3 and contains local patches which are recorded in gcc-4.4.3/README.google. Change-Id: Id8c6d6927df274ae9749196a1cc24dbd9abc9887
Diffstat (limited to 'gcc-4.4.3/ltgcc.m4')
1 files changed, 60 insertions, 0 deletions
diff --git a/gcc-4.4.3/ltgcc.m4 b/gcc-4.4.3/ltgcc.m4
new file mode 100644
index 000000000..844e2bc16
--- /dev/null
+++ b/gcc-4.4.3/ltgcc.m4
@@ -0,0 +1,60 @@
+# --------------------------
+# Ensure that the configuration variables for the GNU Java Compiler compiler
+# are suitably defined. These variables are subsequently used by _LT_CONFIG
+# to write the compiler configuration to `libtool'. Locally modified to
+# run its tests on C programs, because we cannot link Java programs until
+# we have finished building libjava.
+# Source file extension for Java test sources.
+# Object file extension for compiled Java test sources.
+_LT_TAGVAR(objext, $1)=$objext
+# Code to be used in simple compile tests
+lt_simple_compile_test_code="int some_variable = 0;"
+# Code to be used in simple link tests
+lt_simple_link_test_code='int main(){return(0);}'
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
+# save warnings/boilerplate of simple test code
+# Allow CC to be a program name with arguments.
+_LT_TAGVAR(compiler, $1)=$CC
+# GCJ did not exist at the time GCC didn't implicitly link libc in.
+_LT_TAGVAR(archive_cmds_need_lc, $1)=no
+_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
+## There is no encapsulation within the following macros, do not change
+## the running order or otherwise move them around unless you know exactly
+## what you are doing...
+if test -n "$compiler"; then
+ _LT_CONFIG($1)
+_LT_TAGVAR(compiler, $1)=${GCJ-gcj}