I am attempting to specify a host compiler via the file ~/.ptxdist/ptxdistrc-2015.02
PTXCONF_SETUP_HOST_CPP="cpp-4.8"
PTXCONF_SETUP_HOST_CC="gcc-4.8"
PTXCONF_SETUP_HOST_CXX="g++-4.8"
PTXCONF_SETUP_HOST_MAKE="make"
I think this is ptxdist setup developer options.
I expected ptxdist to use these compilers to build host-* packages, but instead it is using gcc and g++.
I'm including a patch which behaves more the way I expect below. Would you guys care to comment on how I should have done this? I would like to build my firmware on different ubuntu versions which come with different compilers.
Thanks,
Sandy Patterson
--- ptxdist-2015.02.0-orig/rules/other/Namespace.make 2017-10-26 15:20:35.925028016 -0400
+++ ptxdist-2015.02.0/rules/other/Namespace.make 2017-10-26 15:21:19.248999794 -0400
@@ -19,8 +19,8 @@
PTXCONF_COMPILER_PREFIX := $(call remove_quotes, $(PTXCONF_COMPILER_PREFIX))
COMPILER_PREFIX := $(PTXCONF_COMPILER_PREFIX)
-HOSTCC := gcc
-HOSTCXX := g++
+HOSTCC := $(call remove_quotes, $(PTXCONF_SETUP_HOST_CC))
+HOSTCXX := $(call remove_quotes, $(PTXCONF_SETUP_HOST_CXX))
PTXCONF_ARCH_STRING := $(call remove_quotes, $(PTXCONF_ARCH_STRING))
PTXCONF_KERNEL_ARCH_STRING := $(call remove_quotes, $(PTXCONF_KERNEL_ARCH_STRING))