Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libcdi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mpim-sw
libcdi
Commits
3816b353
Commit
3816b353
authored
6 years ago
by
Sergey Kosukhin
Browse files
Options
Downloads
Patches
Plain Diff
Patch for ltmain to support NAG compiler.
parent
7ce36fce
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
autogen.sh
+4
-0
4 additions, 0 deletions
autogen.sh
patch/ltmain_sh.patch
+19
-0
19 additions, 0 deletions
patch/ltmain_sh.patch
with
23 additions
and
0 deletions
autogen.sh
0 → 100755
+
4
−
0
View file @
3816b353
#!/bin/sh
autoreconf
-fvi
||
exit
$?
patch
-p
1
-i
patch/ltmain_sh.patch
-d
.
This diff is collapsed.
Click to expand it.
patch/ltmain_sh.patch
0 → 100644
+
19
−
0
View file @
3816b353
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'`
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment