diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-06-02 19:02:49 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-06-02 19:02:49 +0000 |
commit | 5b69e2e1d49009faa029ccc3f7c54af76105e30b (patch) | |
tree | a00f598596cf9356e0e710596001b290b6e3991f /gcc/config | |
parent | f83974e5f246fbf9483c2c98a8282d2832661894 (diff) | |
download | gcc-5b69e2e1d49009faa029ccc3f7c54af76105e30b.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148094 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/rs6000/aix.h | 16 | ||||
-rw-r--r-- | gcc/config/rs6000/aix43.h | 12 | ||||
-rw-r--r-- | gcc/config/rs6000/aix51.h | 10 | ||||
-rw-r--r-- | gcc/config/rs6000/aix52.h | 10 | ||||
-rw-r--r-- | gcc/config/rs6000/aix53.h | 10 | ||||
-rw-r--r-- | gcc/config/rs6000/aix61.h | 10 | ||||
-rw-r--r-- | gcc/config/rs6000/t-aix52 | 2 |
7 files changed, 31 insertions, 39 deletions
diff --git a/gcc/config/rs6000/aix.h b/gcc/config/rs6000/aix.h index 4e736ce3fc2..b9f1bcadb1a 100644 --- a/gcc/config/rs6000/aix.h +++ b/gcc/config/rs6000/aix.h @@ -120,18 +120,10 @@ /* #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. @@ -152,8 +144,8 @@ %{!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++" diff --git a/gcc/config/rs6000/aix43.h b/gcc/config/rs6000/aix43.h index 56b24a363c6..4b769ca8d87 100644 --- a/gcc/config/rs6000/aix43.h +++ b/gcc/config/rs6000/aix43.h @@ -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 diff --git a/gcc/config/rs6000/aix51.h b/gcc/config/rs6000/aix51.h index dbec0fb2a3c..7bac90a3f00 100644 --- a/gcc/config/rs6000/aix51.h +++ b/gcc/config/rs6000/aix51.h @@ -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 diff --git a/gcc/config/rs6000/aix52.h b/gcc/config/rs6000/aix52.h index 8fab3f4a263..e1fcfa9516b 100644 --- a/gcc/config/rs6000/aix52.h +++ b/gcc/config/rs6000/aix52.h @@ -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 diff --git a/gcc/config/rs6000/aix53.h b/gcc/config/rs6000/aix53.h index 80f1038faa1..e941fa48277 100644 --- a/gcc/config/rs6000/aix53.h +++ b/gcc/config/rs6000/aix53.h @@ -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 diff --git a/gcc/config/rs6000/aix61.h b/gcc/config/rs6000/aix61.h index e62a775c745..f3f31ac6e14 100644 --- a/gcc/config/rs6000/aix61.h +++ b/gcc/config/rs6000/aix61.h @@ -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 diff --git a/gcc/config/rs6000/t-aix52 b/gcc/config/rs6000/t-aix52 index b22a190096e..0b4540278ce 100644 --- a/gcc/config/rs6000/t-aix52 +++ b/gcc/config/rs6000/t-aix52 @@ -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 \ |