summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWoongsuk Cho <ws77.cho@samsung.com>2023-12-22 09:02:00 +0900
committer조웅석/MDE Lab(SR)/삼성전자 <ws77.cho@samsung.com>2023-12-22 11:06:32 +0900
commit1727ece48777c40abd6c3748b49f6affa9b521f7 (patch)
tree7dcb1bf53956e5fee21af36863dbf7dddb9227ff
parent66370263f51514fb66e2698b3d96513675451ffa (diff)
downloadlauncher-accepted/tizen_unified_riscv.tar.gz
launcher-accepted/tizen_unified_riscv.tar.bz2
launcher-accepted/tizen_unified_riscv.zip
Processor-specifc glue code is removed from latest pal.h. To avoid build failure, add HOST_XXX define for each architecture.
-rw-r--r--packaging/dotnet-launcher.spec17
1 files changed, 17 insertions, 0 deletions
diff --git a/packaging/dotnet-launcher.spec b/packaging/dotnet-launcher.spec
index 1aa0949..e17aa7d 100644
--- a/packaging/dotnet-launcher.spec
+++ b/packaging/dotnet-launcher.spec
@@ -117,6 +117,23 @@ export CFLAGS+=" -DBIT64 -DHOST_64BIT "
export CXXFLAGS+=" -DBIT64 -DHOST_64BIT "
%endif
+# add define HOST_XXX to support pal.h becuase processor-specifc glue code is removed from latest code
+%ifarch %{arm}
+export CFLAGS+=" -DHOST_ARM "
+export CXXFLAGS+=" -DHOST_ARM "
+%endif
+%ifarch ARM64
+export CFLAGS+=" -DHOST_ARM64 "
+export CXXFLAGS+=" -DHOST_ARM64 "
+%endif
+%ifarch %{ix86}
+export CFLAGS+=" -DHOST_X86 "
+export CXXFLAGS+=" -DHOST_X86 "
+%endif
+%ifarch x86_64
+export CFLAGS+=" -DHOST_AMD64"
+export CXXFLAGS+=" -DHOST_AMD64 "
+%endif
%ifarch riscv64
export CFLAGS+=" -DHOST_RISCV64 "
export CXXFLAGS+=" -DHOST_RISCV64 "