Commit d90eeca1 by Arnaud Charlet Committed by Pierre-Marie de Rodat

[Ada] System.OS_Interface: fix link order on Linux

2019-07-05  Arnaud Charlet  <charlet@adacore.com>

gcc/ada/

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

From-SVN: r273120
parent 4f469dec
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
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment