Build and link with the more correct -pthread option on Linux, instead of -lpthread
This was SVN commit r7193.
This commit is contained in:
parent
5174a0a1ce
commit
beb3417b03
@ -630,12 +630,16 @@ function setup_main_exe ()
|
||||
tinsert(package.links, {
|
||||
"fam",
|
||||
-- Utilities
|
||||
"pthread", "rt",
|
||||
"rt",
|
||||
-- Debugging
|
||||
"bfd", "iberty",
|
||||
-- Dynamic libraries (needed for linking for gold)
|
||||
"dl",
|
||||
})
|
||||
|
||||
-- Threading support
|
||||
tinsert(package.buildoptions, "-pthread")
|
||||
tinsert(package.linkoptions, "-pthread")
|
||||
|
||||
-- For debug_resolve_symbol
|
||||
package.config["Debug"].linkoptions = { "-rdynamic" }
|
||||
@ -1025,13 +1029,17 @@ function setup_tests()
|
||||
tinsert(package.links, {
|
||||
"fam",
|
||||
-- Utilities
|
||||
"pthread", "rt",
|
||||
"rt",
|
||||
-- Debugging
|
||||
"bfd", "iberty",
|
||||
-- Dynamic libraries (needed for linking for gold)
|
||||
"dl",
|
||||
})
|
||||
|
||||
-- Threading support
|
||||
tinsert(package.buildoptions, "-pthread")
|
||||
tinsert(package.linkoptions, "-pthread")
|
||||
|
||||
-- For debug_resolve_symbol
|
||||
package.config["Debug"].linkoptions = { "-rdynamic" }
|
||||
package.config["Testing"].linkoptions = { "-rdynamic" }
|
||||
|
Loading…
Reference in New Issue
Block a user