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

Fix the nag pthread patch.

parent da0fe4d2
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'` tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'`
+ +
+ # Additionally convert " -pthread" to " -Wl,-pthread" for nagfor + # 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'` + tmp_inherited_linker_flags=`$ECHO " $tmp_inherited_linker_flags" | $SED 's/ -pthread\b/ -Wl,-pthread/g'`
+ fi + fi
+ +
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
+ # better not to revert the changes, otherwise, uncomment the following + # better not to revert the changes, otherwise, uncomment the following
+ # lines. + # 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/^ *//'` + new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's/ -Wl,-pthread\b/ -pthread/g;s/^ *//'`
+ fi + 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