Skip to content
Snippets Groups Projects
Commit 8a691b32 authored by Sergey Kosukhin's avatar Sergey Kosukhin
Browse files

Fix the nag pthread patch.

parent 6573ff9f
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@
tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'`
+
+ # Additionally convert " -pthread" to " -Wl,-pthread" for nagfor
+ if test yes = $with_nagfor ; then
+ if test yes = "$with_nagfor" ; then
+ tmp_inherited_linker_flags=`$ECHO " $tmp_inherited_linker_flags" | $SED 's/ -pthread\b/ -Wl,-pthread/g'`
+ fi
+
......@@ -27,7 +27,7 @@
+ # better not to revert the changes, otherwise, uncomment the following
+ # lines.
+
+ if test yes = $with_nagfor ; then
+ if test yes = "$with_nagfor" ; then
+ new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's/ -Wl,-pthread\b/ -pthread/g;s/^ *//'`
+ fi
+
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment