Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcvs2svn <>2011-09-22 00:49:22 +0400
committercvs2svn <>2011-09-22 00:49:22 +0400
commitd8a927edfbb789f983109682ff8ea1f9753660f6 (patch)
tree5d5139e571c56f63b8258557c6a679f553520262 /config/picflag.m4
parentf4f02a260cd697c595ba8216364c4e9e6081663b (diff)
This commit was manufactured by cvs2svn to create tag 'sid-sid-snapshot-20110801
snapshot-20110801'. Sprout from binutils-2_22-branch 2011-09-21 20:49:16 UTC cvs2svn 'This commit was manufactured by cvs2svn to create branch 'binutils-' Cherrypick from master 2011-07-29 22:46:29 UTC Maciej W. Rozycki <macro@codesourcery.com> ' bfd/': ChangeLog config/ChangeLog configure configure.ac include/ChangeLog include/bfdlink.h include/elf/ChangeLog include/elf/sparc.h include/elf/x86-64.h include/mach-o/ChangeLog include/mach-o/loader.h include/opcode/ChangeLog include/opcode/mips.h include/opcode/sparc.h src-release Delete: config/picflag.m4 include/mach-o/external.h include/mach-o/reloc.h include/mach-o/x86-64.h texinfo/texinfo.tex
Diffstat (limited to 'config/picflag.m4')
-rw-r--r--config/picflag.m495
1 files changed, 0 insertions, 95 deletions
diff --git a/config/picflag.m4 b/config/picflag.m4
deleted file mode 100644
index f6f1b444e..000000000
--- a/config/picflag.m4
+++ /dev/null
@@ -1,95 +0,0 @@
-# _GCC_PICFLAG(FLAG, DISPATCH)
-# ----------------------------
-# Store PIC flag corresponding to DISPATCH triplet in FLAG.
-# Explit use of -fpic in CFLAGS corresponding to FLAG overrides default.
-AC_DEFUN([_GCC_PICFLAG], [
-
-case "${$2}" in
- # PIC is the default on some targets or must not be used.
- *-*-darwin*)
- # PIC is the default on this platform
- # Common symbols not allowed in MH_DYLIB files
- $1=-fno-common
- ;;
- alpha*-dec-osf5*)
- # PIC is the default.
- ;;
- hppa*64*-*-hpux*)
- # PIC is the default for 64-bit PA HP-UX.
- ;;
- i[[34567]]86-*-cygwin* | i[[34567]]86-*-mingw* | x86_64-*-mingw*)
- ;;
- i[[34567]]86-*-interix3*)
- # Interix 3.x gcc -fpic/-fPIC options generate broken code.
- # Instead, we relocate shared libraries at runtime.
- ;;
- i[[34567]]86-*-nto-qnx*)
- # QNX uses GNU C++, but need to define -shared option too, otherwise
- # it will coredump.
- $1='-fPIC -shared'
- ;;
- i[[34567]]86-pc-msdosdjgpp*)
- # DJGPP does not support shared libraries at all.
- ;;
- ia64*-*-hpux*)
- # On IA64 HP-UX, PIC is the default but the pic flag
- # sets the default TLS model and affects inlining.
- $1=-fPIC
- ;;
- mips-sgi-irix6*)
- # PIC is the default.
- ;;
- rs6000-ibm-aix* | powerpc-ibm-aix*)
- # All AIX code is PIC.
- ;;
-
- # Some targets support both -fPIC and -fpic, but prefer the latter.
- # FIXME: Why?
- i[[34567]]86-*-* | x86_64-*-*)
- $1=-fpic
- ;;
- m68k-*-*)
- $1=-fpic
- ;;
- s390*-*-*)
- $1=-fpic
- ;;
- # FIXME: Override -fPIC default in libgcc only?
- sh-*-linux* | sh[[2346lbe]]*-*-linux*)
- $1=-fpic
- ;;
- # FIXME: Simplify to sh*-*-netbsd*?
- sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
- sh64-*-netbsd* | sh64l*-*-netbsd*)
- $1=-fpic
- ;;
- # Default to -fPIC unless specified otherwise.
- *)
- $1=-fPIC
- ;;
-esac
-
-# If the user explicitly uses -fpic/-fPIC, keep that.
-case "${m4_bpatsubsts($1, PICFLAG, CFLAGS)}" in
- *-fpic*)
- $1=-fpic
- ;;
- *-fPIC*)
- $1=-fPIC
- ;;
-esac
-])
-
-# GCC_PICFLAG
-# -----------
-# Store host PIC flag in PICFLAG.
-AC_DEFUN([GCC_PICFLAG], [
- AC_REQUIRE([AC_CANONICAL_HOST])
- _GCC_PICFLAG([PICFLAG], [host])])
-
-# GCC_PICFLAG_FOR_TARGET
-# ----------------------
-# Store target PIC flag in PICFLAG_FOR_TARGET.
-AC_DEFUN([GCC_PICFLAG_FOR_TARGET], [
- AC_REQUIRE([AC_CANONICAL_TARGET])
- _GCC_PICFLAG([PICFLAG_FOR_TARGET], [target])])