Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
base
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
FSL
base
Commits
399f442f
Commit
399f442f
authored
3 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Plain Diff
Merge branch 'mnt/fsldevdir-rpath' into 'master'
Mnt/fsldevdir rpath See merge request
!30
parents
1f2af62d
c46b0e35
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!30
Mnt/fsldevdir rpath
Pipeline
#11500
canceled
3 years ago
Stage: test
Stage: fsl-ci-build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+6
-0
6 additions, 0 deletions
CHANGELOG.md
config/buildSettings.mk
+28
-15
28 additions, 15 deletions
config/buildSettings.mk
with
34 additions
and
15 deletions
CHANGELOG.md
+
6
−
0
View file @
399f442f
# FSL base project changelog
## 2111.3 (Wednesday 17th November 2021)
*
The
`$FSLDEVDIR/lib`
directory is now added to the
`rpath`
entry for shared
libraries and executables, if
`$FSLDEVDIR`
is different from
`$FSLDIR`
.
## 2111.2 (Monday 15th November 2021)
*
Added the
`FSL_GE_606`
`Makefile`
flag for use by projects which need to
...
...
This diff is collapsed.
Click to expand it.
config/buildSettings.mk
+
28
−
15
View file @
399f442f
...
...
@@ -78,17 +78,19 @@ ARCHNVCCLDFLAGS =
#
#####################################################################
# Drop -rpath flags from LDFLAGS if it is
# set in the environment - we explicitly
# add them below such that executables
# will be able to find libs in $(pwd) and
# in $FSLDIR/lib *in that order*. This is
# so that executables located in the
# project source dir can be executed in
# place with sensible behaviour (i.e. any
# shared libs located in the same dir will
# take precedence over libs of the same
# name in $FSLDIR/lib/).
# Drop -rpath flags from LDFLAGS if it is set in
# the environment - we explicitly add them below
# such that executables will be able to find libs
# in $(pwd), $FSLDEVDIR/lib, and $FSLDIR/lib *in
# that order*. This is so that executables
# located in the project source dir can be
# executed in place with sensible behaviour (i.e.
# any shared libs located in the same dir will
# take precedence over libs of the same name in
# $FSLDIR/lib/).
#
# Fortunately -Wl,-rpath is used for both g++ and
# clang, so we can cover both with one substitution.
COMMA
:=
,
_LDFLAGS
:=
$(
patsubst
-Wl
${
COMMA
}
-rpath
%,,
${
LDFLAGS
})
LDFLAGS
=
${
_LDFLAGS
}
...
...
@@ -101,8 +103,12 @@ ifeq ($(SYSTYPE), Darwin)
CXX
?=
clang++
CFLAGS
?=
-arch
x86_64
-Wall
-pedantic
CXXFLAGS
?=
-arch
x86_64
-Wall
-pedantic
LDFLAGS
+=
-Wl
,-rpath,
"@executable_path/"
\
-Wl
,-rpath,
"
${
FSLDIR
}
/lib"
LDFLAGS
+=
-Wl
,-rpath,
"@executable_path/"
# Only add FSLDEVDIR if different to FSLDIR
ifneq
(${FSLDEVDIR}, ${FSLDIR})
LDFLAGS
+=
-Wl
,-rpath,
"
${
FSLDEVDIR
}
/lib"
endif
LDFLAGS
+=
-Wl
,-rpath,
"
${
FSLDIR
}
/lib"
ARCHLIBS
+=
-llapack
-lblas
-lz
-lm
# On macOS, we need to change the install
...
...
@@ -131,8 +137,15 @@ ifeq ($(SYSTYPE), Linux)
-Wall
-pedantic
-Wno-long-long
CXXFLAGS
?=
-fexpensive-optimizations
\
-Wall
-pedantic
-Wno-long-long
LDFLAGS
+=
-Wl
,-rpath,
'$$ORIGIN:
${
FSLDIR
}
/lib'
\
-Wl
,-rpath-link,
'$$ORIGIN:
${
FSLDIR
}
/lib'
LDFLAGS
+=
-Wl
,-rpath,
'$$ORIGIN'
\
-Wl
,-rpath-link,
'$$ORIGIN'
# Only add FSLDEVDIR if different to FSLDIR
ifneq
(${FSLDEVDIR}, ${FSLDIR})
LDFLAGS
+=
-Wl
,-rpath,
'
${
FSLDEVDIR
}
/lib'
\
-Wl
,-rpath-link,
'
${
FSLDEVDIR
}
/lib'
endif
LDFLAGS
+=
-Wl
,-rpath,
'
${
FSLDIR
}
/lib'
\
-Wl
,-rpath-link,
'
${
FSLDIR
}
/lib'
ARCHLIBS
+=
-lopenblas
-lz
-lm
endif
...
...
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