diff options
author | Adrien Nader <adrien@notk.org> | 2014-05-16 22:02:14 +0200 |
---|---|---|
committer | Adrien Nader <adrien@notk.org> | 2014-05-16 22:02:14 +0200 |
commit | 12a3ac9e48eca89510a78a26face66d8ee164aed (patch) | |
tree | 03c3cd6cf64af57e88bf29f125753fa291c080f5 /d | |
parent | 8d29e63f091df5af6d287e7352a2afed06b9edcc (diff) |
gcc: only append to the default gcc search paths for cross-compilers.
Diffstat (limited to 'd')
-rwxr-xr-x | d/gcc/gcc.SlackBuild | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/d/gcc/gcc.SlackBuild b/d/gcc/gcc.SlackBuild index bf1def8..dd3cca2 100755 --- a/d/gcc/gcc.SlackBuild +++ b/d/gcc/gcc.SlackBuild @@ -452,17 +452,15 @@ fi fi # Add, e.g., /opt/windows_32/{include,lib} to default search paths - if [ x"${HOST_TRIPLET}" = x"${TARGET_TRIPLET}" ]; then - prefix_dir="!{YYPREFIX}" - else + if [ x"${HOST_TRIPLET}" != x"${TARGET_TRIPLET}" ]; then prefix_dir="/${YYPREFIX_TARGET}" - fi - sed -i \ - -e "/^\*lib:$/ { N; s;$; -L${prefix_dir}/lib${LIBDIRSUFFIX_TGT}; }" \ - -e "/^\*cpp:$/ { N; s;$; -I${prefix_dir}/include; }" \ - -e "/^\*cc1plus:$/ { N; s;$; -I${prefix_dir}/include; }" \ - ${PKG_GCC}/${SPECS} + sed -i \ + -e "/^\*lib:$/ { N; s;$; -L${prefix_dir}/lib${LIBDIRSUFFIX_TGT}; }" \ + -e "/^\*cpp:$/ { N; s;$; -I${prefix_dir}/include; }" \ + -e "/^\*cc1plus:$/ { N; s;$; -I${prefix_dir}/include; }" \ + ${PKG_GCC}/${SPECS} + fi # Make our 64bit gcc look for 32bit gcc binaries in ./32 subdirectory: if [ "$ARCH" = "x86_64" ]; then |