mirror of
https://review.haiku-os.org/buildtools
synced 2024-11-23 07:18:49 +01:00
legacy/gcc: Fix cpp cross-tool prefix
* Noticed that our gcc2 randomly produces a "cpp" instead of a i586-pc-haiku-cpp * A quick google search turned up a vintage patch for palmos which also fixes this issue: https://github.com/jichu4n/prc-tools-remix/blob/master/prc-tools-2.3/gcc-2.95.3.palmos.diff * Confirmed it fixes the issue, and built a x86_gcc2 image without any issues Change-Id: I33959248f10b69d64a4a9e430a9c254a162bcb53 Reviewed-on: https://review.haiku-os.org/c/1583 Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com> Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
parent
d113c7b5b4
commit
56d94c3a71
@ -204,7 +204,7 @@ AR_FOR_TARGET = ` \
|
||||
if [ "$(host_canonical)" = "$(target)" ] ; then \
|
||||
echo ar; \
|
||||
else \
|
||||
t='$(program_transform_name)'; echo ar | sed -e $$t ; \
|
||||
t='$(program_transform_cross_name)'; echo ar | sed -e $$t ; \
|
||||
fi; \
|
||||
fi`
|
||||
AR_FLAGS_FOR_TARGET = rc
|
||||
@ -215,7 +215,7 @@ RANLIB_FOR_TARGET = ` \
|
||||
if [ "$(host_canonical)" = "$(target)" ] ; then \
|
||||
echo ranlib; \
|
||||
else \
|
||||
t='$(program_transform_name)'; echo ranlib | sed -e $$t ; \
|
||||
t='$(program_transform_cross_name)'; echo ranlib | sed -e $$t ; \
|
||||
fi; \
|
||||
fi`
|
||||
RANLIB_TEST_FOR_TARGET = \
|
||||
@ -491,6 +491,7 @@ GCOV_INSTALL_NAME = `t='$(program_transform_name)'; echo gcov | sed -e $$t`
|
||||
|
||||
# Actual name to use when installing a cross-compiler.
|
||||
GCC_CROSS_NAME = `t='$(program_transform_cross_name)'; echo gcc | sed -e $$t`
|
||||
CPP_CROSS_NAME = `t='$(program_transform_cross_name)'; echo cpp | sed -e $$t`
|
||||
PROTOIZE_CROSS_NAME = `t='$(program_transform_cross_name)'; echo protoize | sed -e $$t`
|
||||
UNPROTOIZE_CROSS_NAME = `t='$(program_transform_cross_name)'; echo unprotoize | sed -e $$t`
|
||||
|
||||
@ -2461,17 +2462,28 @@ install-cross-rest: install-float-h-cross
|
||||
|
||||
# Handle cpp installation.
|
||||
install-cpp: cpp$(exeext)
|
||||
-rm -f $(bindir)/$(CPP_INSTALL_NAME)$(exeext)
|
||||
$(INSTALL_PROGRAM) -m 755 cpp$(exeext) $(bindir)/$(CPP_INSTALL_NAME)$(exeext)
|
||||
if [ x$(cpp_install_dir) != x ]; then \
|
||||
rm -f $(prefix)/$(cpp_install_dir)/$(CPP_INSTALL_NAME)$(exeext); \
|
||||
$(INSTALL_PROGRAM) -m 755 cpp$(exeext) $(prefix)/$(cpp_install_dir)/$(CPP_INSTALL_NAME)$(exeext); \
|
||||
else true; fi
|
||||
-if [ -f gcc-cross$(exeext) ] ; then \
|
||||
rm -f $(bindir)/$(CPP_CROSS_NAME)$(exeext); \
|
||||
$(INSTALL_PROGRAM) -m 755 cpp$(exeext) $(bindir)/$(CPP_CROSS_NAME)$(exeext); \
|
||||
if [ x$(cpp_install_dir) != x ]; then \
|
||||
rm -f $(prefix)/$(cpp_install_dir)/$(CPP_CROSS_NAME)$(exeext); \
|
||||
$(INSTALL_PROGRAM) -m 755 cpp$(exeext) $(prefix)/$(cpp_install_dir)/$(CPP_CROSS_NAME)$(exeext); \
|
||||
else true; fi; \
|
||||
else \
|
||||
rm -f $(bindir)/$(CPP_INSTALL_NAME)$(exeext); \
|
||||
$(INSTALL_PROGRAM) -m 755 cpp$(exeext) $(bindir)/$(CPP_INSTALL_NAME)$(exeext); \
|
||||
if [ x$(cpp_install_dir) != x ]; then \
|
||||
rm -f $(prefix)/$(cpp_install_dir)/$(CPP_INSTALL_NAME)$(exeext); \
|
||||
$(INSTALL_PROGRAM) -m 755 cpp$(exeext) $(prefix)/$(cpp_install_dir)/$(CPP_INSTALL_NAME)$(exeext); \
|
||||
else true; fi; \
|
||||
fi
|
||||
|
||||
uninstall-cpp:
|
||||
-rm -f $(bindir)/cpp
|
||||
-rm -f $(bindir)/$(CPP_INSTALL_NAME)$(exeext)
|
||||
-rm -f $(bindir)/$(CPP_CROSS_NAME)$(exeext)
|
||||
-if [ x$(cpp_install_dir) != x ]; then \
|
||||
rm -f $(prefix)/$(cpp_install_dir)/cpp; \
|
||||
rm -f $(prefix)/$(cpp_install_dir)/$(CPP_INSTALL_NAME)$(exeext); \
|
||||
rm -f $(prefix)/$(cpp_install_dir)/$(CPP_CROSS_NAME)$(exeext); \
|
||||
else true; fi
|
||||
|
||||
# Install float.h for cross compiler.
|
||||
|
Loading…
Reference in New Issue
Block a user