source: rtems-tools/linkers/rld-gcc.h @ 993aa67

4.104.115
Last change on this file since 993aa67 was ec24a37, checked in by Chris Johns <chrisj@…>, on 05/06/12 at 22:47:11

Add to git.

  • Property mode set to 100644
File size: 1.8 KB
Line 
1/*
2 * Copyright (c) 2011, Chris Johns <chrisj@rtems.org>
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 */
16/**
17 * @file
18 *
19 * @ingroup rtems-ld
20 *
21 * @brief Various calls to GCC.
22 *
23 */
24
25#if !defined (_RLD_GCC_H_)
26#define _RLD_GCC_H_
27
28#include <string>
29
30#include <rld-files.h>
31
32namespace rld
33{
34  namespace gcc
35  {
36    extern std::string exec_prefix;    //< The GCC executable prefix.
37    extern std::string march;          //< The GCC machine architecture.
38    extern std::string mcpu;           //< The GCC machine CPU.
39
40    extern std::string install_path;   //< The GCC reported install path.
41    extern std::string programs_path;  //< The GCC reported programs path.
42    extern std::string libraries_path; //< The GCC reported libraries path.
43   
44    /**
45     * Get the standard libraries paths from the compiler.
46     */
47    void get_standard_libpaths (rld::files::paths& libpaths);
48   
49    /**
50     * Get the standard libraries. Optionally add the C++ library.
51     */
52    void get_standard_libs (rld::files::paths& libs,
53                            rld::files::paths& libpaths,
54                            bool               cpp = false);
55   
56  }
57}
58
59#endif
Note: See TracBrowser for help on using the repository browser.