[Ada] System.OS_Interface: fix link order on Linux
authorArnaud Charlet <charlet@adacore.com>
Fri, 5 Jul 2019 07:03:10 +0000 (07:03 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Fri, 5 Jul 2019 07:03:10 +0000 (07:03 +0000)
2019-07-05  Arnaud Charlet  <charlet@adacore.com>

gcc/ada/

* libgnarl/s-osinte__linux.ads: Link with -lrt before -lpthread.

From-SVN: r273120

gcc/ada/ChangeLog
gcc/ada/libgnarl/s-osinte__linux.ads

index 8daf38b3c88b8780d9b312069280f5c131ddf5ea..fed5a15c9276adee6ca97d77932dff1d76f716ed 100644 (file)
@@ -1,3 +1,7 @@
+2019-07-05  Arnaud Charlet  <charlet@adacore.com>
+
+       * libgnarl/s-osinte__linux.ads: Link with -lrt before -lpthread.
+
 2019-07-05  Ed Schonberg  <schonberg@adacore.com>
 
        * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Add explicit
index ba3b82423adc297308d10081dae3e7687e5f2a30..80cb2b2a793ea8efa9447679d27a95e42d4a284b 100644 (file)
@@ -46,10 +46,11 @@ with System.OS_Constants;
 package System.OS_Interface is
    pragma Preelaborate;
 
-   pragma Linker_Options ("-lpthread");
    pragma Linker_Options ("-lrt");
    --  Needed for clock_getres with glibc versions prior to 2.17
 
+   pragma Linker_Options ("-lpthread");
+
    subtype int            is Interfaces.C.int;
    subtype char           is Interfaces.C.char;
    subtype short          is Interfaces.C.short;