]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
authorRichard Sandiford <r.sandiford@uk.ibm.com>
Tue, 2 Jun 2009 19:02:49 +0000 (19:02 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 2 Jun 2009 19:02:49 +0000 (19:02 +0000)
gcc/
* Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
* config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
!CROSS_DIRECTORY_STRUCTURE alternative and use it for
CROSS_DIRECTORY_STRUCTURE too.
(LINK_LIBG_SPEC): Likewise.
(LIB_SPEC): Add %R to sysroot paths.
* config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
(CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
* config/rs6000/aix51.h: As for aix43.h.
* config/rs6000/aix52.h: Likewise.
* config/rs6000/aix53.h: Likewise.
* config/rs6000/aix61.h: Likewise.
* config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
to the beginning of sysroot paths.

From-SVN: r148094

gcc/ChangeLog
gcc/Makefile.in
gcc/config/rs6000/aix.h
gcc/config/rs6000/aix43.h
gcc/config/rs6000/aix51.h
gcc/config/rs6000/aix52.h
gcc/config/rs6000/aix53.h
gcc/config/rs6000/aix61.h
gcc/config/rs6000/t-aix52

index a00f194750c7ffd56a32aa9f5135fdc4dd7807bb..26a6edd13d4f2375852d5dcc39e9a3faeffeef75 100644 (file)
@@ -1,3 +1,20 @@
+2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
+
+       * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
+       * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
+       !CROSS_DIRECTORY_STRUCTURE alternative and use it for
+       CROSS_DIRECTORY_STRUCTURE too.
+       (LINK_LIBG_SPEC): Likewise.
+       (LIB_SPEC): Add %R to sysroot paths.
+       * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
+       (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
+       * config/rs6000/aix51.h: As for aix43.h.
+       * config/rs6000/aix52.h: Likewise.
+       * config/rs6000/aix53.h: Likewise.
+       * config/rs6000/aix61.h: Likewise.
+       * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
+       to the beginning of sysroot paths.
+
 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
 
        * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
index e841c5dd81a5feaf56e379874e1e48b26f7a8831..e76e256c78db008b43a4782c58b099b74e3fd02d 100644 (file)
@@ -1753,6 +1753,7 @@ libgcc.mvars: config.status Makefile $(LIB2ADD) $(LIB2ADD_ST) specs \
        echo CRTSTUFF_CFLAGS = '$(CRTSTUFF_CFLAGS)' >> tmp-libgcc.mvars
        echo CRTSTUFF_T_CFLAGS = '$(CRTSTUFF_T_CFLAGS)' >> tmp-libgcc.mvars
        echo CRTSTUFF_T_CFLAGS_S = '$(CRTSTUFF_T_CFLAGS_S)' >> tmp-libgcc.mvars
+       echo TARGET_SYSTEM_ROOT = '$(TARGET_SYSTEM_ROOT)' >> tmp-libgcc.mvars
 
        mv tmp-libgcc.mvars libgcc.mvars
 
index 4e736ce3fc231589382dea907339c6bbc932d9a9..b9f1bcadb1a0a16e81f4b00d17010845423d351c 100644 (file)
 /* #define ASM_SPEC "-u %(asm_cpu)" */
 
 /* Default location of syscalls.exp under AIX */
-#ifndef CROSS_DIRECTORY_STRUCTURE
-#define LINK_SYSCALLS_SPEC "-bI:/lib/syscalls.exp"
-#else
-#define LINK_SYSCALLS_SPEC ""
-#endif
+#define LINK_SYSCALLS_SPEC "-bI:%R/lib/syscalls.exp"
 
 /* Default location of libg.exp under AIX */
-#ifndef CROSS_DIRECTORY_STRUCTURE
-#define LINK_LIBG_SPEC "-bexport:/usr/lib/libg.exp"
-#else
-#define LINK_LIBG_SPEC ""
-#endif
+#define LINK_LIBG_SPEC "-bexport:%R/usr/lib/libg.exp"
 
 /* Define the options for the binder: Start text at 512, align all segments
    to 512 bytes, and warn if there is text relocation.
 %{!shared:%{g*: %(link_libg) }} %{shared:-bM:SRE}"
 
 /* Profiled library versions are used by linking with special directories.  */
-#define LIB_SPEC "%{pg:-L/lib/profiled -L/usr/lib/profiled}\
-%{p:-L/lib/profiled -L/usr/lib/profiled} %{!shared:%{g*:-lg}} -lc"
+#define LIB_SPEC "%{pg:-L%R/lib/profiled -L%R/usr/lib/profiled}\
+%{p:-L%R/lib/profiled -L%R/usr/lib/profiled} %{!shared:%{g*:-lg}} -lc"
 
 /* Static linking with shared libstdc++ requires libsupc++ as well.  */
 #define LIBSTDCXX_STATIC "-lstdc++ -lsupc++"
index 56b24a363c62cbf557b335b863e3a04b8843f61f..4b769ca8d8725d5738fc2ce80cf2a0aa7f2946c9 100644 (file)
@@ -104,7 +104,7 @@ do {                                                                        \
 #define CPP_SPEC "%{posix: -D_POSIX_SOURCE}\
    %{ansi: -D_ANSI_C_SOURCE}\
    %{maix64: -D__64BIT__}\
-   %{mpe: -I/usr/lpp/ppe.poe/include}\
+   %{mpe: -I%R/usr/lpp/ppe.poe/include}\
    %{pthread: -D_THREAD_SAFE}"
 
 /* The GNU C++ standard library requires that these macros be 
@@ -113,7 +113,7 @@ do {                                                                        \
 #define CPLUSPLUS_CPP_SPEC                     \
   "-D_ALL_SOURCE                               \
    %{maix64: -D__64BIT__}                      \
-   %{mpe: -I/usr/lpp/ppe.poe/include}          \
+   %{mpe: -I%R/usr/lpp/ppe.poe/include}                \
    %{pthread: -D_THREAD_SAFE}"
 
 #undef TARGET_DEFAULT
@@ -141,11 +141,11 @@ do {                                                                      \
 #define        MULTILIB_DEFAULTS { "mcpu=common" }
 
 #undef LIB_SPEC
-#define LIB_SPEC "%{pg:-L/lib/profiled -L/usr/lib/profiled}\
-   %{p:-L/lib/profiled -L/usr/lib/profiled}\
+#define LIB_SPEC "%{pg:-L%R/lib/profiled -L%R/usr/lib/profiled}\
+   %{p:-L%R/lib/profiled -L%R/usr/lib/profiled}\
    %{!maix64:%{!shared:%{g*:-lg}}}\
-   %{mpe:-L/usr/lpp/ppe.poe/lib -lmpi -lvtd}\
-   %{pthread:-L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a}\
+   %{mpe:-L%R/usr/lpp/ppe.poe/lib -lmpi -lvtd}\
+   %{pthread:-L%R/usr/lib/threads -lpthreads -lc_r %R/usr/lib/libc.a}\
    %{!pthread:-lc}"
 
 #undef LINK_SPEC
index dbec0fb2a3c6b41fcf62fccfe93b0a53b8db103f..7bac90a3f00c5dd1462d89877b45ca222561f941 100644 (file)
@@ -101,7 +101,7 @@ do {                                                                        \
 #define CPP_SPEC "%{posix: -D_POSIX_SOURCE}    \
   %{ansi: -D_ANSI_C_SOURCE}                    \
   %{maix64: -D__64BIT__}                       \
-  %{mpe: -I/usr/lpp/ppe.poe/include}           \
+  %{mpe: -I%R/usr/lpp/ppe.poe/include}         \
   %{pthread: -D_THREAD_SAFE}"
 
 /* The GNU C++ standard library requires that these macros be 
@@ -110,7 +110,7 @@ do {                                                                        \
 #define CPLUSPLUS_CPP_SPEC                     \
   "-D_ALL_SOURCE                               \
    %{maix64: -D__64BIT__}                      \
-   %{mpe: -I/usr/lpp/ppe.poe/include}          \
+   %{mpe: -I%R/usr/lpp/ppe.poe/include}                \
    %{pthread: -D_THREAD_SAFE}"
 
 #undef TARGET_DEFAULT
@@ -138,10 +138,10 @@ do {                                                                      \
 #define        MULTILIB_DEFAULTS { "mcpu=common" }
 
 #undef LIB_SPEC
-#define LIB_SPEC "%{pg:-L/lib/profiled -L/usr/lib/profiled}\
-   %{p:-L/lib/profiled -L/usr/lib/profiled}\
+#define LIB_SPEC "%{pg:-L%R/lib/profiled -L%R/usr/lib/profiled}\
+   %{p:-L%R/lib/profiled -L%R/usr/lib/profiled}\
    %{!maix64:%{!shared:%{g*:-lg}}}\
-   %{mpe:-L/usr/lpp/ppe.poe/lib -lmpi -lvtd}\
+   %{mpe:-L%R/usr/lpp/ppe.poe/lib -lmpi -lvtd}\
    %{pthread:-lpthreads} -lc"
 
 #undef LINK_SPEC
index 8fab3f4a26301a93aa9176ed135e673e7a919142..e1fcfa9516bdf17ee3907b9420ebf5f46eec44db 100644 (file)
@@ -99,7 +99,7 @@ do {                                                                  \
 #define CPP_SPEC "%{posix: -D_POSIX_SOURCE}    \
   %{ansi: -D_ANSI_C_SOURCE}                    \
   %{maix64: -D__64BIT__}                       \
-  %{mpe: -I/usr/lpp/ppe.poe/include}           \
+  %{mpe: -I%R/usr/lpp/ppe.poe/include}         \
   %{pthread: -D_THREAD_SAFE}"
 
 /* The GNU C++ standard library requires that these macros be 
@@ -108,7 +108,7 @@ do {                                                                        \
 #define CPLUSPLUS_CPP_SPEC                     \
   "-D_ALL_SOURCE                               \
    %{maix64: -D__64BIT__}                      \
-   %{mpe: -I/usr/lpp/ppe.poe/include}          \
+   %{mpe: -I%R/usr/lpp/ppe.poe/include}                \
    %{pthread: -D_THREAD_SAFE}"
 
 #undef  TARGET_DEFAULT
@@ -140,10 +140,10 @@ do {                                                                      \
 #undef MULTILIB_DEFAULTS
 
 #undef LIB_SPEC
-#define LIB_SPEC "%{pg:-L/lib/profiled -L/usr/lib/profiled}\
-   %{p:-L/lib/profiled -L/usr/lib/profiled}\
+#define LIB_SPEC "%{pg:-L%R/lib/profiled -L%R/usr/lib/profiled}\
+   %{p:-L%R/lib/profiled -L%R/usr/lib/profiled}\
    %{!maix64:%{!shared:%{g*:-lg}}}\
-   %{mpe:-L/usr/lpp/ppe.poe/lib -lmpi -lvtd}\
+   %{mpe:-L%R/usr/lpp/ppe.poe/lib -lmpi -lvtd}\
    %{pthread:-lpthreads} -lc"
 
 #undef LINK_SPEC
index 80f1038faa140a52bde7e7b9dd05aa195cc4a179..e941fa48277a687529cc7d0927883d7d543ca9d8 100644 (file)
@@ -101,7 +101,7 @@ do {                                                                        \
 #define CPP_SPEC "%{posix: -D_POSIX_SOURCE}    \
   %{ansi: -D_ANSI_C_SOURCE}                    \
   %{maix64: -D__64BIT__}                       \
-  %{mpe: -I/usr/lpp/ppe.poe/include}           \
+  %{mpe: -I%R/usr/lpp/ppe.poe/include}         \
   %{pthread: -D_THREAD_SAFE}"
 
 /* The GNU C++ standard library requires that these macros be 
@@ -110,7 +110,7 @@ do {                                                                        \
 #define CPLUSPLUS_CPP_SPEC                     \
   "-D_ALL_SOURCE                               \
    %{maix64: -D__64BIT__}                      \
-   %{mpe: -I/usr/lpp/ppe.poe/include}          \
+   %{mpe: -I%R/usr/lpp/ppe.poe/include}                \
    %{pthread: -D_THREAD_SAFE}"
 
 #undef  TARGET_DEFAULT
@@ -136,10 +136,10 @@ do {                                                                      \
 #undef MULTILIB_DEFAULTS
 
 #undef LIB_SPEC
-#define LIB_SPEC "%{pg:-L/lib/profiled -L/usr/lib/profiled}\
-   %{p:-L/lib/profiled -L/usr/lib/profiled}\
+#define LIB_SPEC "%{pg:-L%R/lib/profiled -L%R/usr/lib/profiled}\
+   %{p:-L%R/lib/profiled -L%R/usr/lib/profiled}\
    %{!maix64:%{!shared:%{g*:-lg}}}\
-   %{mpe:-L/usr/lpp/ppe.poe/lib -lmpi -lvtd}\
+   %{mpe:-L%R/usr/lpp/ppe.poe/lib -lmpi -lvtd}\
    %{pthread:-lpthreads} -lc"
 
 #undef LINK_SPEC
index e62a775c745e3932fcd5fea748e9833cb540d2af..f3f31ac6e14dc8a91aff029e889f7870fd9d4ef1 100644 (file)
@@ -102,7 +102,7 @@ do {                                                                        \
 #define CPP_SPEC "%{posix: -D_POSIX_SOURCE}    \
   %{ansi: -D_ANSI_C_SOURCE}                    \
   %{maix64: -D__64BIT__}                       \
-  %{mpe: -I/usr/lpp/ppe.poe/include}           \
+  %{mpe: -I%R/usr/lpp/ppe.poe/include}         \
   %{pthread: -D_THREAD_SAFE}"
 
 /* The GNU C++ standard library requires that these macros be 
@@ -111,7 +111,7 @@ do {                                                                        \
 #define CPLUSPLUS_CPP_SPEC                     \
   "-D_ALL_SOURCE -D__COMPATMATH__              \
    %{maix64: -D__64BIT__}                      \
-   %{mpe: -I/usr/lpp/ppe.poe/include}          \
+   %{mpe: -I%R/usr/lpp/ppe.poe/include}                \
    %{pthread: -D_THREAD_SAFE}"
 
 #undef  TARGET_DEFAULT
@@ -137,10 +137,10 @@ do {                                                                      \
 #undef MULTILIB_DEFAULTS
 
 #undef LIB_SPEC
-#define LIB_SPEC "%{pg:-L/lib/profiled -L/usr/lib/profiled}\
-   %{p:-L/lib/profiled -L/usr/lib/profiled}\
+#define LIB_SPEC "%{pg:-L%R/lib/profiled -L%R/usr/lib/profiled}\
+   %{p:-L%R/lib/profiled -L%R/usr/lib/profiled}\
    %{!maix64:%{!shared:%{g*:-lg}}}\
-   %{mpe:-L/usr/lpp/ppe.poe/lib -lmpi -lvtd}\
+   %{mpe:-L%R/usr/lpp/ppe.poe/lib -lmpi -lvtd}\
    %{pthread:-lpthreads} -lc"
 
 #undef LINK_SPEC
index b22a190096e236beb2e4d21e24b9fc0e8a4d55e6..0b4540278ce88b6cc92fe40817088a0c05ab7cb7 100644 (file)
@@ -47,7 +47,7 @@ SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \
        -Wl,-bE:@shlib_map_file@ -o @multilib_dir@/shr.o \
        @multilib_flags@ @shlib_objs@ -lc \
        `case @multilib_dir@ in \
-       *pthread*) echo -L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a ;; \
+       *pthread*) echo -L$(TARGET_SYSTEM_ROOT)/usr/lib/threads -lpthreads -lc_r $(TARGET_SYSTEM_ROOT)/usr/lib/libc.a ;; \
        *) echo -lc ;; esac` ; \
        rm -f @multilib_dir@/tmp-@shlib_base_name@.a ; \
        $(AR_CREATE_FOR_TARGET) @multilib_dir@/tmp-@shlib_base_name@.a \