]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Ada] powerpc64-wrs-vxworks7r2: build shared libgnat
authorFrederic Konrad <konrad@adacore.com>
Fri, 6 Nov 2020 19:08:28 +0000 (20:08 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 21 Jun 2021 10:44:58 +0000 (06:44 -0400)
gcc/ada/

* Makefile.rtl: Compiles both static and dynamic libgnat for
powerpc64-wrs-vxworks7r2.

gcc/ada/Makefile.rtl

index 7f075c7f9865c64852809e7b1252cefd72444aca..37311818778d352ef02308a49f404505592e1bee 100644 (file)
@@ -1194,6 +1194,13 @@ ifeq ($(strip $(filter-out powerpc% wrs vxworks vxworksspe vxworks7% vxworks7spe
     GCC_SPEC_FILES+=vxworks-cert-$(ARCH_STR)-link.spec
     GCC_SPEC_FILES+=vxworks-smp-$(ARCH_STR)-link.spec
   endif
+
+  ifeq ($(strip $(filter-out vxworks7r2 powerpc64 rtp rtp-smp, $(target_os) $(target_cpu) $(THREAD_KIND))),)
+    # Shared libraries are only supported on PowerPC64, VxWorks7r2
+    # ATM.  Also this is disabled for kernel runtimes.
+    GNATLIB_SHARED = gnatlib-shared-dual
+    LIBRARY_VERSION := $(LIB_VERSION)
+  endif
 endif
 
 # PowerPC and e500v2 VxWorks 653