summaryrefslogtreecommitdiff
path: root/libobjc/configure.ac
diff options
context:
space:
mode:
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2005-08-13 23:44:14 +0000
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2005-08-13 23:44:14 +0000
commita16ff609fdc5552d38e7138e2376d6dd219da848 (patch)
tree61dfb21612d6b2c4459838f77213e464ac26fffd /libobjc/configure.ac
parent252f45aba19698d427e078504cab796df7809072 (diff)
downloadgcc-a16ff609fdc5552d38e7138e2376d6dd219da848.tar.gz
2005-08-13 Andrew Pinski <pinskia@physics.uc.edu>
* Makefile.in (extra_ldflags_libobjc): New. (libobjc$(libext).la): Add extra_ldflags_libobjc to the link line. (libobjc_gc$(libext).la): Likewise. * configure.ac (extra_ldflags_libgfortran): Set for *-darwin* to "-Wl,-single_module". * configure: Regenerate. * linking.m (_objcInit): Remove. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@103064 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libobjc/configure.ac')
-rw-r--r--libobjc/configure.ac9
1 files changed, 9 insertions, 0 deletions
diff --git a/libobjc/configure.ac b/libobjc/configure.ac
index 149d7e51c2b..bf5fe7b903b 100644
--- a/libobjc/configure.ac
+++ b/libobjc/configure.ac
@@ -178,6 +178,15 @@ m4_define([_AC_ARG_VAR_PRECIOUS],[])
AC_PROG_CC
m4_rename([real_PRECIOUS],[_AC_ARG_VAR_PRECIOUS])
+# extra LD Flags which are required for targets
+case "${host}" in
+ *-darwin*)
+ # Darwin needs -single_module when linking libobjc
+ extra_ldflags_libobjc=-Wl,-single_module
+ ;;
+esac
+AC_SUBST(extra_ldflags_libobjc)
+
AC_SUBST(CFLAGS)
AC_CHECK_TOOL(AS, as)