From 0d8aa10473e25321a7e8c847598ee2b175f0a0bb Mon Sep 17 00:00:00 2001 From: Maneesh Gupta Date: Fri, 28 Oct 2016 14:12:13 +0530 Subject: [PATCH] hipcc: Update flags for Fedora support Change-Id: I90be7768410e491b4f11c3b0f08470246d781d80 --- hipamd/bin/hipcc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/hipamd/bin/hipcc b/hipamd/bin/hipcc index 2f3cd46c62..f5692e6fca 100755 --- a/hipamd/bin/hipcc +++ b/hipamd/bin/hipcc @@ -116,9 +116,16 @@ if ($HIP_PLATFORM eq "hcc") { } else { $HIPLDFLAGS .= " -Wl,--defsym=_binary_kernel_spir_end=1 -Wl,--defsym=_binary_kernel_spir_start=1 -Wl,--defsym=_binary_kernel_cl_start=1 -Wl,--defsym=_binary_kernel_cl_end=1"; } + if ($HOST_OSNAME eq "fedora") { + $HIPCXXFLAGS .= " -I/usr/local/include/c++/v1"; + } # Satisfy HCC dependencies - $HIPLDFLAGS .= " -lc++abi -lsupc++"; + if ($HOST_OSNAME eq "fedora") { + $HIPLDFLAGS .= " -lc++abi"; + } else { + $HIPLDFLAGS .= " -lc++abi -lsupc++"; + } $HIPLDFLAGS .= " -L$HSA_PATH/lib -L$ROCM_PATH/lib -lhsa-runtime64 -lhc_am -lhsakmt"; # Handle ROCm target platform