samples/ia64-unknown-linux-gnu/crosstool.config
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Apr 26 21:31:05 2008 +0000 (2008-04-26)
changeset 454 372b2f397baa
parent 415 7e0146ce11a5
child 488 160b349a1396
permissions -rw-r--r--
Configure tsocks with a simple heuristic.

Consider the proxy has to be in a 'local' network. It means it is directly
reachable by the local machine, even if the local machine has to hop through
one or more gates to reach the proxy (often the case in enterprise networks
where class A 10.0.0.0/8 is in fact sub-divided into smaller networks, each
one of them in a different location, eg. 10.1.0.0/16 in a place, while
10.2.0.0/16 would be on the other side of the world). Not being in the same
subnet does not mean the proxy is not available.

So we will build a mask with at most high bits set, which defines a network
that has both the local machine and the proxy. Because a machine may have
more than one interface, build a mask for each of them, removing 127.0.0.1
which is added automagically by tsocks, and removing duplicate masks.

If all of this does not work, then it means the local machine can NOT in fact
reach the proxy, which in turn means the user mis-configured something (most
probably a typo...).

/trunk/scripts/crosstool.sh | 61 52 9 0 +++++++++++++++++++++++++++++++++++++++++++--------
1 file changed, 52 insertions(+), 9 deletions(-)
     1 #
     2 # Automatically generated make config: don't edit
     3 # crosstool-NG version: 0.3.2+svn
     4 # Wed Jan 16 23:20:35 2008
     5 #
     6 # CT_FOOBAR is not set
     7 
     8 #
     9 # Paths and misc options
    10 #
    11 
    12 #
    13 # crosstool-NG behavior
    14 #
    15 CT_OBSOLETE=y
    16 CT_EXPERIMENTAL=y
    17 # CT_BROKEN is not set
    18 CT_DEBUG_CT=y
    19 # CT_DEBUG_CT_PAUSE_STEPS is not set
    20 CT_DEBUG_CT_SAVE_STEPS=y
    21 CT_DEBUG_CT_SAVE_STEPS_GZIP=y
    22 
    23 #
    24 # Build behavior
    25 #
    26 CT_PARALLEL_JOBS=1
    27 CT_LOAD=0
    28 CT_NICE=0
    29 CT_USE_PIPES=y
    30 
    31 #
    32 # Paths
    33 #
    34 CT_LOCAL_TARBALLS_DIR="${HOME}/dev/src"
    35 CT_SAVE_TARBALLS=y
    36 CT_PREFIX_DIR="${HOME}/${CT_TARGET}"
    37 CT_INSTALL_DIR="${CT_PREFIX_DIR}"
    38 # CT_CUSTOM_PATCH is not set
    39 # CT_REMOVE_DOCS is not set
    40 # CT_INSTALL_DIR_RO is not set
    41 
    42 #
    43 # Downloading
    44 #
    45 # CT_FORCE_DOWNLOAD is not set
    46 # CT_ONLY_DOWNLOAD is not set
    47 
    48 #
    49 # Extracting
    50 #
    51 # CT_FORCE_EXTRACT is not set
    52 # CT_ONLY_EXTRACT is not set
    53 
    54 #
    55 # Logging
    56 #
    57 # CT_LOG_ERROR is not set
    58 # CT_LOG_WARN is not set
    59 # CT_LOG_INFO is not set
    60 CT_LOG_EXTRA=y
    61 # CT_LOG_DEBUG is not set
    62 # CT_LOG_ALL is not set
    63 CT_LOG_LEVEL_MAX="EXTRA"
    64 # CT_LOG_SEE_TOOLS_WARN is not set
    65 CT_LOG_PROGRESS_BAR=y
    66 CT_LOG_TO_FILE=y
    67 CT_LOG_FILE_COMPRESS=y
    68 
    69 #
    70 # Target options
    71 #
    72 
    73 #
    74 # General target options
    75 #
    76 CT_ARCH="ia64"
    77 # CT_ARCH_ARM is not set
    78 CT_ARCH_IA64=y
    79 # CT_ARCH_SH is not set
    80 # CT_ARCH_MIPS is not set
    81 # CT_ARCH_x86 is not set
    82 # CT_ARCH_x86_64 is not set
    83 CT_ARCH_SUPPORTS_BOTH_ENDIAN=y
    84 # CT_ARCH_DEFAULT_BE is not set
    85 # CT_ARCH_DEFAULT_LE is not set
    86 # CT_ARCH_BE is not set
    87 CT_ARCH_LE=y
    88 
    89 #
    90 # Target optimisations
    91 #
    92 CT_ARCH_ARCH=""
    93 CT_ARCH_ABI=""
    94 CT_ARCH_CPU=""
    95 CT_ARCH_TUNE=""
    96 CT_ARCH_FPU=""
    97 CT_ARCH_FLOAT_HW=y
    98 # CT_ARCH_FLOAT_SW is not set
    99 CT_TARGET_CFLAGS=""
   100 
   101 #
   102 # Toolchain options
   103 #
   104 
   105 #
   106 # General toolchain options
   107 #
   108 CT_USE_SYSROOT=y
   109 CT_SHARED_LIBS=y
   110 # CT_THREADS_NPTL is not set
   111 CT_THREADS_LINUXTHREADS=y
   112 # CT_THREADS_NONE is not set
   113 CT_THREADS="linuxthreads"
   114 CT_TARGET_VENDOR="unknown"
   115 CT_TARGET_ALIAS_SED_EXPR=""
   116 CT_TARGET_ALIAS=""
   117 
   118 #
   119 # Toolchain type
   120 #
   121 # CT_NATIVE is not set
   122 CT_CROSS=y
   123 # CT_CROSS_NATIVE is not set
   124 # CT_CANADIAN is not set
   125 CT_TOOLCHAIN_TYPE="cross"
   126 CT_BUILD=""
   127 CT_CC_NATIVE="gcc"
   128 
   129 #
   130 # Kernel
   131 #
   132 CT_KERNEL_LINUX=y
   133 CT_KERNEL_VERSION="2.6.22.5"
   134 CT_KERNEL_LINUX_HEADERS_INSTALL=y
   135 # CT_KERNEL_LINUX_HEADERS_SANITISED is not set
   136 # CT_KERNEL_LINUX_HEADERS_COPY is not set
   137 # CT_KERNEL_LINUX_HEADERS_USE_CUSTOM_DIR is not set
   138 CT_KERNEL="linux"
   139 CT_KERNEL_VERSION_SEE_EXTRAVERSION=y
   140 # CT_KERNEL_INSTALL_V_2_6_18_8 is not set
   141 # CT_KERNEL_INSTALL_V_2_6_19_7 is not set
   142 # CT_KERNEL_INSTALL_V_2_6_20_15 is not set
   143 # CT_KERNEL_INSTALL_V_2_6_21_7 is not set
   144 # CT_KERNEL_INSTALL_V_2_6_22 is not set
   145 # CT_KERNEL_INSTALL_V_2_6_22_1 is not set
   146 # CT_KERNEL_INSTALL_V_2_6_22_2 is not set
   147 # CT_KERNEL_INSTALL_V_2_6_22_3 is not set
   148 # CT_KERNEL_INSTALL_V_2_6_22_4 is not set
   149 CT_KERNEL_INSTALL_V_2_6_22_5=y
   150 # CT_KERNEL_INSTALL_V_2_6_22_6 is not set
   151 # CT_KERNEL_INSTALL_V_2_6_22_7 is not set
   152 # CT_KERNEL_INSTALL_V_2_6_22_8 is not set
   153 # CT_KERNEL_INSTALL_V_2_6_22_9 is not set
   154 # CT_KERNEL_INSTALL_V_2_6_22_10 is not set
   155 # CT_KERNEL_INSTALL_V_2_6_23 is not set
   156 # CT_KERNEL_INSTALL_V_2_6_23_1 is not set
   157 # CT_KERNEL_LINUX_HEADERS_INSTALL_CHECK is not set
   158 CT_KERNEL_LINUX_VERBOSITY_0=y
   159 # CT_KERNEL_LINUX_VERBOSITY_1 is not set
   160 # CT_KERNEL_LINUX_VERBOSITY_2 is not set
   161 CT_KERNEL_LINUX_VERBOSE_LEVEL=0
   162 # CT_KERNEL_LINUX_NEEDS_CONFIG is not set
   163 
   164 #
   165 # binutils
   166 #
   167 CT_BINUTILS_VERSION="2.18"
   168 # CT_BINUTILS_V_2_14 is not set
   169 # CT_BINUTILS_V_2_15 is not set
   170 # CT_BINUTILS_V_2_16_1 is not set
   171 # CT_BINUTILS_V_2_17 is not set
   172 CT_BINUTILS_V_2_18=y
   173 CT_BINUTILS_EXTRA_CONFIG=""
   174 
   175 #
   176 # C compiler
   177 #
   178 CT_CC_GCC=y
   179 CT_CC_VERSION="3.4.6"
   180 CT_CC="gcc"
   181 # CT_CC_V_2_95_3 is not set
   182 # CT_CC_V_3_2_3 is not set
   183 # CT_CC_V_3_3_6 is not set
   184 CT_CC_V_3_4_6=y
   185 # CT_CC_V_4_0_0 is not set
   186 # CT_CC_V_4_0_1 is not set
   187 # CT_CC_V_4_0_2 is not set
   188 # CT_CC_V_4_0_3 is not set
   189 # CT_CC_V_4_0_4 is not set
   190 # CT_CC_V_4_1_0 is not set
   191 # CT_CC_V_4_1_1 is not set
   192 # CT_CC_V_4_1_2 is not set
   193 # CT_CC_V_4_2_0 is not set
   194 # CT_CC_V_4_2_1 is not set
   195 # CT_CC_V_4_2_2 is not set
   196 CT_CC_CXA_ATEXIT=y
   197 CT_CC_CORE_EXTRA_CONFIG=""
   198 CT_CC_EXTRA_CONFIG=""
   199 CT_CC_SUPPORT_CXX=y
   200 CT_CC_SUPPORT_FORTRAN=y
   201 CT_CC_SUPPORT_JAVA=y
   202 CT_CC_SUPPORT_ADA=y
   203 CT_CC_SUPPORT_OBJC=y
   204 CT_CC_SUPPORT_OBJCXX=y
   205 
   206 #
   207 # Additional supported languages:
   208 #
   209 # CT_CC_LANG_CXX is not set
   210 # CT_CC_LANG_FORTRAN is not set
   211 # CT_CC_LANG_JAVA is not set
   212 # CT_CC_LANG_ADA is not set
   213 # CT_CC_LANG_OBJC is not set
   214 # CT_CC_LANG_OBJCXX is not set
   215 CT_CC_LANG_OTHERS=""
   216 
   217 #
   218 # C-library
   219 #
   220 CT_LIBC_GLIBC=y
   221 # CT_LIBC_UCLIBC is not set
   222 CT_LIBC_VERSION="2.3.6"
   223 CT_LIBC="glibc"
   224 CT_LIBC_SUPPORT_NPTL=y
   225 CT_LIBC_SUPPORT_LINUXTHREADS=y
   226 CT_LIBC_V_2_3_6=y
   227 # CT_LIBC_V_2_5 is not set
   228 # CT_LIBC_V_2_5_1 is not set
   229 # CT_LIBC_V_2_6 is not set
   230 # CT_LIBC_V_2_6_1 is not set
   231 # CT_LIBC_V_2_7 is not set
   232 CT_LIBC_GLIBC_EXTRA_CONFIG=""
   233 CT_LIBC_GLIBC_EXTRA_CFLAGS=""
   234 CT_LIBC_EXTRA_CC_ARGS=""
   235 CT_LIBC_GLIBC_CONFIGPARMS=""
   236 # CT_LIBC_GLIBC_USE_PORTS is not set
   237 # CT_LIBC_ADDONS is not set
   238 
   239 #
   240 # Tools facilities
   241 #
   242 # CT_SSTRIP is not set
   243 
   244 #
   245 # Debug facilities
   246 #
   247 # CT_DMALLOC is not set
   248 # CT_DUMA is not set
   249 # CT_GDB is not set
   250 # CT_STRACE is not set