From: Arnaud Charlet Date: Fri, 5 Jul 2019 07:03:10 +0000 (+0000) Subject: [Ada] System.OS_Interface: fix link order on Linux X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d90eeca129a12d2236f8625d8ea5c93826bb526f;p=gcc.git [Ada] System.OS_Interface: fix link order on Linux 2019-07-05 Arnaud Charlet gcc/ada/ * libgnarl/s-osinte__linux.ads: Link with -lrt before -lpthread. From-SVN: r273120 --- diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 8daf38b3c88..fed5a15c927 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,7 @@ +2019-07-05 Arnaud Charlet + + * libgnarl/s-osinte__linux.ads: Link with -lrt before -lpthread. + 2019-07-05 Ed Schonberg * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Add explicit diff --git a/gcc/ada/libgnarl/s-osinte__linux.ads b/gcc/ada/libgnarl/s-osinte__linux.ads index ba3b82423ad..80cb2b2a793 100644 --- a/gcc/ada/libgnarl/s-osinte__linux.ads +++ b/gcc/ada/libgnarl/s-osinte__linux.ads @@ -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;