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

Patch for ltmain to support NAG compiler.

parent 2d99837e
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
autoreconf -fvi || exit $?
patch -p 1 -i patch/ltmain_sh.patch -d .
diff --git a/config/ltmain.sh b/config/ltmain.sh
index 857338f..c19bbcc 100644
--- a/config/ltmain.sh
+++ b/config/ltmain.sh
@@ -8078,6 +8078,14 @@ func_mode_link ()
# Read the .la file
func_source "$lib"
+ # Change -pthread to -Wl,-pthread for nagfor
+ if test -n "$inherited_linker_flags"; then
+ func_cc_basename "$CC"
+ case $func_cc_basename_result in
+ nagfor*) inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/ -pthread/ -Wl,-pthread/g'` ;;
+ esac
+ fi
+
# Convert "-framework foo" to "foo.ltframework"
if test -n "$inherited_linker_flags"; then
tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'`
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