Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
a4bd589c
Commit
a4bd589c
authored
Jul 16, 2018
by
Sergey Kosukhin
Browse files
Patch ltmain.sh to provide NAG compiler with -Wl,-pthread.
parent
3f3a1bbb
Changes
2
Hide whitespace changes
Inline
Side-by-side
autogen.sh
0 → 100755
View file @
a4bd589c
#!/bin/sh
autoreconf
-fvi
||
exit
$?
patch
-p
1
-i
patch/ltmain_sh.patch
-d
.
patch/ltmain_sh.patch
0 → 100644
View file @
a4bd589c
diff --git a/config/ltmain.sh b/config/ltmain.sh
index b6f3fcbb..4facc967 100644
--- a/config/ltmain.sh
+++ b/config/ltmain.sh
@@ -7861,6 +7861,13 @@
func_mode_link ()
# Read the .la file
func_source "$lib"
+ # Change -pthread to -Wl,-pthread for nagfor
+ if test -n "$inherited_linker_flags"; then
+ case $CC 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'`
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment